tissue/routes/web.php

68 lines
3.5 KiB
PHP
Raw Normal View History

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');
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
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');
Route::get('/checkin/{id}/edit', 'EjaculationController@edit')->name('checkin.edit');
Route::put('/checkin/{id}', 'EjaculationController@update')->name('checkin.update');
Route::delete('/checkin/{id}', 'EjaculationController@destroy')->name('checkin.destroy');
2018-12-30 23:19:52 +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');
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-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');
// 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');
Route::get('/info', 'InfoController@index')->name('info');
Route::get('/info/create', 'InfoController@create')->name('info.create');
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
});