summaryrefslogtreecommitdiff
path: root/routes/web.php
blob: f6c086d92f4ca477fc41fd6569b8e09a148aca04 (plain)
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
<?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('/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');

Route::get('/test/{param?}', 'IndexController@test');
Route::get('/user/{param?}', 'TestController@user');