1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
#Route::get('/', 'IndexController@showPage');
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('/anime/season/{season_name}/{season_year}', 'AnimeController@showSeason')->name('season');
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('/search', 'AnimeController@search')->name('search');
Route::get('/test/{param?}', 'IndexController@test');
Route::get('/user/{param?}', 'TestController@user');
|