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-02-26 22:46:40 +09:00
|
|
|
Route::get('/user', 'UserController@redirectMypage')->middleware('auth');
|
2017-11-03 18:10:50 +09:00
|
|
|
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');
|
2019-04-06 00:14:05 +09:00
|
|
|
Route::get('/user/{name}/likes', 'UserController@likes')->name('user.likes');
|
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');
|
2018-12-30 23:19:52 +09:00
|
|
|
|
2019-03-04 22:30:34 +09:00
|
|
|
Route::get('/timeline/public', 'TimelineController@showPublic')->name('timeline.public');
|
|
|
|
|
2018-12-30 23:19:52 +09:00
|
|
|
Route::redirect('/setting', '/setting/profile', 301);
|
|
|
|
Route::get('/setting/profile', 'SettingController@profile')->name('setting');
|
|
|
|
Route::post('/setting/profile', 'SettingController@updateProfile')->name('setting.profile.update');
|
2019-01-19 01:17:56 +09:00
|
|
|
Route::get('/setting/privacy', 'SettingController@privacy')->name('setting.privacy');
|
2018-12-30 23:19:52 +09:00
|
|
|
Route::post('/setting/privacy', 'SettingController@updatePrivacy')->name('setting.privacy.update');
|
2020-05-21 22:33:27 +09:00
|
|
|
Route::get('/setting/import', 'SettingController@import')->name('setting.import');
|
|
|
|
Route::post('/setting/import', 'SettingController@storeImport')->name('setting.import');
|
2020-05-20 01:50:34 +09:00
|
|
|
Route::get('/setting/export', 'SettingController@export')->name('setting.export');
|
|
|
|
Route::get('/setting/export/csv', 'SettingController@exportToCsv')->name('setting.export.csv');
|
2019-09-12 00:54:36 +09:00
|
|
|
Route::get('/setting/deactivate', 'SettingController@deactivate')->name('setting.deactivate');
|
|
|
|
Route::post('/setting/deactivate', 'SettingController@destroyUser')->name('setting.deactivate.destroy');
|
2019-01-19 00:13:34 +09:00
|
|
|
// Route::get('/setting/password', 'SettingController@password')->name('setting.password');
|
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');
|
2019-02-11 15:35:31 +09:00
|
|
|
|
2019-09-16 13:24:22 +09:00
|
|
|
Route::get('/tag', 'TagController@index')->name('tag');
|
|
|
|
|
2019-02-11 15:35:31 +09:00
|
|
|
Route::middleware('can:admin')
|
|
|
|
->namespace('Admin')
|
|
|
|
->prefix('admin')
|
|
|
|
->name('admin.')
|
|
|
|
->group(function () {
|
|
|
|
Route::get('/', 'DashboardController@index')->name('dashboard');
|
2019-02-11 23:25:46 +09:00
|
|
|
Route::get('/info', 'InfoController@index')->name('info');
|
|
|
|
Route::get('/info/create', 'InfoController@create')->name('info.create');
|
2019-03-14 00:04:53 +09:00
|
|
|
Route::post('/info', 'InfoController@store')->name('info.store');
|
|
|
|
Route::get('/info/{info}', 'InfoController@edit')->name('info.edit');
|
|
|
|
Route::put('/info/{info}', 'InfoController@update')->name('info.update');
|
|
|
|
Route::delete('/info/{info}', 'InfoController@destroy')->name('info.destroy');
|
2019-02-11 15:35:31 +09:00
|
|
|
});
|