diff options
| author | horus | 2020-09-16 11:49:10 +0200 |
|---|---|---|
| committer | horus | 2020-09-16 11:49:10 +0200 |
| commit | 5ba234b8e1307bc63160f3ea653e0f9444d31feb (patch) | |
| tree | bf3e8ff2a9926b7c82fb1bf53329a7ed3aac7493 /routes/web.php | |
| parent | 04e5136a9ee8c38fb2399fa5f00ff02f6f4d7c16 (diff) | |
| download | senpai-5ba234b8e1307bc63160f3ea653e0f9444d31feb.tar.gz | |
clean up routes
Diffstat (limited to 'routes/web.php')
| -rw-r--r-- | routes/web.php | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/routes/web.php b/routes/web.php index f6c086d..58d703d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -12,18 +12,23 @@ */ #Route::get('/', 'IndexController@showPage'); -Route::get('/', function(){ - return redirect()->route('airing_anime'); }); + +Route::get('/', function(){ return redirect()->route('airing_anime'); }); +Route::get('/anime/', function(){ return redirect()->route('airing_anime'); })->name('anime_index'); + +Route::get('/anime/airing', 'AnimeController@showCurrentAnime')->name('airing_anime'); +Route::get('/anime/surprising/', 'AnimeController@showSurprisingAnime')->name('surprising_anime'); +Route::get('/anime/top/', 'AnimeController@showTopAnime')->name('top_anime'); +Route::get('/anime/{mal_id}/{slug?}', 'AnimeController@showAnime')->name('anime'); + +Route::get('/api/anime/{mal_id}', 'ApiController@getAnime'); + Route::get('/ical/{username}', 'IndexController@ical'); Route::get('/create/user/{param}', 'IndexController@createUser'); Route::get('/save', 'IndexController@saveWatchingAnime'); Route::get('/test/getcal/{username}', 'TestController@getCalendar'); Route::get('/test/setcal/{username}', 'TestController@setCalendar'); -Route::get('/api/anime/{mal_id}', 'ApiController@getAnime'); -Route::get('/anime/surprising/', 'AnimeController@showSurprisingAnime')->name('surprising_anime'); -Route::get('/anime/top/', 'AnimeController@showTopAnime')->name('top_anime'); -Route::get('/anime/{mal_id}/{slug?}', 'AnimeController@showAnime')->name('anime'); -Route::get('/anime/', 'AnimeController@showCurrentAnime')->name('airing_anime'); + Route::get('/search', 'AnimeController@search')->name('search'); |
