2019-12-05 18:32:20 +09:00
|
|
|
<?php
|
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::get('/', 'Home\Index@index');
|
|
|
|
Route::get('/blog/{slug}', 'Home\Index@post');
|
2020-01-07 22:48:29 +09:00
|
|
|
|
2021-03-06 00:07:37 +09:00
|
|
|
Route::get('/changelang/{lang}', function ($lang) {
|
|
|
|
setcookie('language', $lang, time()+157788000, '/', $_SERVER['HTTP_HOST'], 0, 1);
|
|
|
|
return redirect('/');
|
|
|
|
});
|
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::any('/content/add', 'Home\Content@add');
|
|
|
|
Route::any('/content/{slug}/edit', 'Home\Content@edit');
|
2020-07-24 22:07:01 +09:00
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::any('/login', 'User\Login@index');
|
|
|
|
Route::any('/register', 'User\Register@index');
|
2020-09-23 14:15:07 +09:00
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::any('/profile/{id}/edit', 'User\Profile@edit');
|
|
|
|
Route::get('/profile/{id}', 'User\Profile@index');
|
2020-01-07 22:48:29 +09:00
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::any('/video/game/add', 'Video\Game@add');
|
|
|
|
Route::any('/video/game/{slug}/edit', 'Video\Game@edit');
|
2020-10-08 09:12:30 +09:00
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::any('/video/add', 'Video\VideoTable@add');
|
|
|
|
Route::any('/video/{vid}/edit', 'Video\VideoTable@edit');
|
2020-10-08 11:03:51 +09:00
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::get('/video', 'Video\Game@index');
|
|
|
|
Route::get('/video/{slug}', 'Video\VideoTable@index');
|
|
|
|
Route::get('/video/play/{vid}', 'Video\Prayer@index');
|
2020-10-08 09:12:30 +09:00
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::get('/memberlist', 'User\MemberList@index');
|
|
|
|
Route::get('/commentlist', 'Home\CommentList@index');
|
2020-12-30 16:15:06 +09:00
|
|
|
|
2021-06-28 22:40:39 +09:00
|
|
|
Route::get('/{slug}', 'Home\Index@page');
|