File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 561561Route::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+ });
You can’t perform that action at this time.
0 commit comments