Skip to content

Commit a7b2686

Browse files
committed
Добавлены маршруты
1 parent 915ba5d commit a7b2686

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

routes/web.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,3 +561,27 @@
561561
Route::get('/rss/feed', [\App\Http\Controllers\FeedController::class, 'index'])
562562
->middleware(['cache.headers:public;max_age=300;etag'])
563563
->name('feeds.rss');
564+
565+
/*
566+
|--------------------------------------------------------------------------
567+
| Feature Voting Routes
568+
|--------------------------------------------------------------------------
569+
|
570+
| Feature voting system - users can propose and vote on new features
571+
|
572+
*/
573+
574+
Route::get('/features', [\App\Http\Controllers\FeatureController::class, 'index'])
575+
->name('features.index');
576+
577+
Route::get('/features/search', [\App\Http\Controllers\FeatureController::class, 'search'])
578+
->name('features.search');
579+
580+
Route::middleware(['auth', RedirectToBanPage::class])
581+
->group(function () {
582+
Route::post('/features', [\App\Http\Controllers\FeatureController::class, 'store'])
583+
->name('features.store');
584+
585+
Route::post('/features/{feature}/vote', [\App\Http\Controllers\FeatureController::class, 'vote'])
586+
->name('features.vote');
587+
});

0 commit comments

Comments
 (0)