diff options
| author | horus | 2020-09-22 23:57:22 +0200 |
|---|---|---|
| committer | horus | 2020-09-22 23:57:22 +0200 |
| commit | 29df7d0dd3dbe7fd71d3039d9a4bec522291d1ae (patch) | |
| tree | 84ae3c6491c4529e4d3648c62cd87772f8196f86 /routes/web.php | |
| parent | 285351b3103bb156bb3f7cb57221d2f09fdf07e0 (diff) | |
| download | curious-29df7d0dd3dbe7fd71d3039d9a4bec522291d1ae.tar.gz | |
add hint and redirect
Diffstat (limited to 'routes/web.php')
| -rw-r--r-- | routes/web.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/web.php b/routes/web.php index 1930938..0693118 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,7 +15,8 @@ use Illuminate\Support\Facades\Route; Route::get('/', 'IndexController@index')->name('index'); Route::get('/topic/{topic}', 'IndexController@topic')->name('topic')->where('topic', '(.+)'); -Route::get('/topic/', 'IndexController@topicindex')->name('topic_index'); +Route::get('/topics/', 'IndexController@topicindex')->name('topic_index'); +Route::get('/topic/', function() { return redirect()->route('topic_index'); })->name('topic_redir'); Route::get('/new', 'IndexController@new')->name('new'); Route::get('/search', 'IndexController@search')->name('search'); Route::get('/popular/topics', 'IndexController@populartopics')->name('popular_topics'); |
