Skip to content

Commit

Permalink
Merge pull request #289 from tighten/ensure-id-is-integer
Browse files Browse the repository at this point in the history
Ensure id is always integer
  • Loading branch information
mateusjunges authored Dec 16, 2024
2 parents 8c74592 + c1105f0 commit 38bb7eb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
use App\Http\Controllers\IssueController;
use App\Http\Controllers\ProjectController;
use App\Http\Controllers\PullRequestController;
use Illuminate\Support\Facades\Route;

Route::get('/', [ProjectController::class, 'index'])->name('projects.index');

Route::prefix('projects/{vendor}/{name}')->group(function () {
Route::get('/', [ProjectController::class, 'show'])->name('projects.show');
Route::get('issues/{id}', [IssueController::class, 'show'])->name('issue.show');
Route::get('prs/{id}', [PullRequestController::class, 'show'])->name('pull-request.show');
Route::get('issues/{id}', [IssueController::class, 'show'])
->where('id', '[0-9]+')
->name('issue.show');
Route::get('prs/{id}', [PullRequestController::class, 'show'])
->where('id', '[0-9]+')
->name('pull-request.show');
});

Route::get('auth/redirect', [LoginController::class, 'redirectToProvider'])->name('auth.github');
Expand Down

0 comments on commit 38bb7eb

Please sign in to comment.