Skip to content

Commit

Permalink
Fix stubs routes
Browse files Browse the repository at this point in the history
  • Loading branch information
felixgilles committed Sep 5, 2024
1 parent 74412d2 commit 4c2ce52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Console/stubs/routes.front.stub
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

Route::get('news/posts', [\App\Http\Controllers\NewsController::class, 'posts'])->name('{{frontPostsRouteName}}');
Route::get('news/posts', [\App\Http\Controllers\FrontNewsController::class, 'posts'])->name('{{frontPostsRouteName}}');

Route::get('news/posts/{{{frontPostParameterName}}}', [\App\Http\Controllers\NewsController::class, 'post'])->name('{{frontPostRouteName}}');
Route::get('news/posts/{{{frontPostParameterName}}}', [\App\Http\Controllers\FrontNewsController::class, 'post'])->name('{{frontPostRouteName}}');

{{withoutCategories}}Route::get('news/categories', [\App\Http\Controllers\NewsController::class, 'categories'])->name('{{frontCategoriesRouteName}}');
{{withoutCategories}}Route::get('news/categories', [\App\Http\Controllers\FrontNewsController::class, 'categories'])->name('{{frontCategoriesRouteName}}');

{{withoutCategories}}Route::get('news/categories/{{{frontCategoryParameterName}}}', [\App\Http\Controllers\NewsController::class, 'category'])->name('{{frontCategoryRouteName}}');
{{withoutCategories}}Route::get('news/categories/{{{frontCategoryParameterName}}}', [\App\Http\Controllers\FrontNewsController::class, 'category'])->name('{{frontCategoryRouteName}}');

{{withoutTags}}Route::get('news/tags/{{{frontTagParameterName}}}', [\App\Http\Controllers\NewsController::class, 'tag'])->name('{{frontTagRouteName}}');
{{withoutTags}}Route::get('news/tags/{{{frontTagParameterName}}}', [\App\Http\Controllers\FrontNewsController::class, 'tag'])->name('{{frontTagRouteName}}');

0 comments on commit 4c2ce52

Please sign in to comment.