2017-08-27 04:44:53 +09:00
|
|
|
<?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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Auth::routes();
|
|
|
|
|
|
|
|
Route::get('/', 'HomeController@index')->name('home');
|
|
|
|
|
2019-01-15 00:05:01 +09:00
|
|
|
Route::get('/user', function () {
|
2017-11-03 18:10:50 +09:00
|
|
|
return redirect()->route('user.profile', ['name' => Auth::user()->name]);
|
|
|
|
})->middleware('auth')->name('user.profile');
|
|
|
|
Route::get('/user/{name?}', 'UserController@profile')->name('user.profile');
|
|
|
|
Route::get('/user/{name}/stats', 'UserController@stats')->name('user.stats');
|
|
|
|
Route::get('/user/{name}/okazu', 'UserController@okazu')->name('user.okazu');
|
2017-08-27 04:44:53 +09:00
|
|
|
|
2018-01-06 19:50:16 +09:00
|
|
|
Route::get('/checkin/{id}', 'EjaculationController@show')->name('checkin.show');
|
2017-08-27 04:44:53 +09:00
|
|
|
Route::middleware('auth')->group(function () {
|
|
|
|
Route::get('/checkin', 'EjaculationController@create')->name('checkin');
|
|
|
|
Route::post('/checkin', 'EjaculationController@store')->name('checkin');
|
2018-01-04 16:53:33 +09:00
|
|
|
Route::get('/checkin/{id}/edit', 'EjaculationController@edit')->name('checkin.edit');
|
|
|
|
Route::put('/checkin/{id}', 'EjaculationController@update')->name('checkin.update');
|
2017-11-03 17:48:58 +09:00
|
|
|
Route::delete('/checkin/{id}', 'EjaculationController@destroy')->name('checkin.destroy');
|
2017-11-03 20:38:09 +09:00
|
|
|
});
|
|
|
|
|
|
|
|
Route::get('/info', 'InfoController@index')->name('info');
|
2018-09-06 23:48:54 +09:00
|
|
|
Route::get('/info/{id}', 'InfoController@show')->where('id', '[0-9]+')->name('info.show');
|
|
|
|
|
|
|
|
Route::redirect('/search', '/search/checkin', 301);
|
|
|
|
Route::get('/search/checkin', 'SearchController@index')->name('search');
|
2019-01-15 00:05:01 +09:00
|
|
|
Route::get('/search/related-tag', 'SearchController@relatedTag')->name('search.related-tag');
|