このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/backend/routes/web.php

131 行
8.6 KiB
PHP
Raw 通常表示 履歴

2021-08-03 15:34:15 +09:00
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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('/', function () {
return view('welcome');
});
2021-09-29 22:23:02 +09:00
// ---------------------------------------- Father Account ------------------------------------------ //
Route::group(['prefix' => 'p-account'], function () {
2021-11-10 20:36:04 +09:00
Route::get('/', function () { return view('p_account.auth'); });
2021-11-02 11:19:00 +09:00
Route::get('/login', '\App\Http\Controllers\Api\FathersController@checkLogin')->name('fatherslogin');
Route::get('/logout', '\App\Http\Controllers\Api\FathersController@logout');
2021-11-10 20:36:04 +09:00
Route::get('/withdrawal/complete', function () { return view('p_account.auth'); });
Route::group(['prefix' => 'register'], function () {
Route::get('/{token}', function () { return view('p_account.auth'); });
Route::get('/complete/{token}', function () { return view('p_account.auth'); });
Route::get('/error/{token}', function () { return view('p_account.auth'); });
});
Route::group(['prefix' => 'forgot-password'], function () {
Route::get('/', function () { return view('p_account.auth'); });
Route::get('/reset/{token}', function () { return view('p_account.auth'); });
Route::get('/complete', function () { return view('p_account.auth'); });
});
2021-11-11 10:02:28 +09:00
Route::group(['middleware' => ['auth:fathers', 'notice.incomplete']], function () {
Route::group(['prefix' => 'meeting'], function () {
Route::get('/', function () { return view('p_account.index'); });
Route::get('/detail/{meeting_id}', function () { return view('p_account.index'); });
Route::get('/new', function () { return view('p_account.index'); });
Route::get('/edit/{child_id}', function () { return view('p_account.index'); });
2021-10-21 11:46:10 +09:00
});
Route::get('/favorite', function () { return view('p_account.index'); });
Route::get('/search', function () { return view('p_account.index'); });
Route::group(['prefix' => 'child'], function () {
Route::get('/', function () { return view('p_account.index'); });
Route::get('/add', function () { return view('p_account.index'); });
Route::get('/edit/hire-date/{child_id}', function () { return view('p_account.index'); });
Route::get('/detail/{child_id}', function () { return view('p_account.index'); });
2021-10-21 11:46:10 +09:00
});
Route::group(['prefix' => 'profile'], function () {
Route::get('/', function () { return view('p_account.index'); });
Route::group(['prefix' => 'edit'], function () {
Route::get('/password/{father_id}', function () { return view('p_account.index'); });
Route::get('/{father_id}', function () { return view('p_account.index'); });
2021-10-21 11:46:10 +09:00
});
2021-11-08 22:47:50 +09:00
Route::get('/withdrawal', function () { return view('p_account.index'); });
2021-10-21 11:46:10 +09:00
});
});
});
Route::group(['prefix' => 'contact-us'], function () {
Route::get('/', function () { return view('pages.contact.index'); });
Route::get('/complete', function () { return view('pages.contact.index'); });
2021-10-21 11:46:10 +09:00
});
Route::get('/unknown-error ', function () { return view('pages.contact.index'); });
2021-10-04 00:18:11 +09:00
// ---------------------------------------- Child Account ------------------------------------------- //
Route::group(['prefix' => 'c-account'], function () {
Route::get('/register-temporary', function () { return view('c_account.auth'); });
2021-11-02 11:19:00 +09:00
Route::get('/login', '\App\Http\Controllers\Api\ChildrenController@checkLogin')->name('childrenlogin');
Route::get('/logout', '\App\Http\Controllers\Api\ChildrenController@logout');
2021-11-08 22:47:50 +09:00
Route::get('/withdrawal/complete', function () { return view('c_account.auth'); });
2021-11-02 11:19:00 +09:00
Route::group(['prefix' => 'register'], function () {
Route::get('/{token}', function () { return view('c_account.auth'); });
2021-11-10 10:22:33 +09:00
Route::get('/complete/{token}', function () { return view('c_account.auth'); });
Route::get('/error/{token}', function () { return view('c_account.auth'); });
});
Route::group(['prefix' => 'forgot-password'], function () {
2021-11-10 13:37:26 +09:00
Route::get('/', function () { return view('c_account.auth'); });
Route::get('/reset/{token}', function () { return view('c_account.auth'); });
2021-11-10 14:19:24 +09:00
Route::get('/complete', function () { return view('c_account.auth'); });
});
2021-10-04 17:01:11 +09:00
2021-11-11 10:02:28 +09:00
Route::group(['middleware' => ['auth:children', 'notice.nonapproval']], function () {
2021-10-30 23:13:12 +09:00
Route::group(['prefix' => 'meeting'], function () {
Route::get('/', function () { return view('c_account.index'); });
Route::get('/detail/{id}', function () { return view('c_account.index'); });
});
Route::get('/search', function () { return view('c_account.index'); });
Route::group(['prefix' => 'parent'], function () {
Route::get('/', function () { return view('c_account.index'); });
Route::get('/detail/{father_id}', function () { return view('c_account.index'); });
});
2021-10-30 23:13:12 +09:00
Route::group(['prefix' => 'profile'], function () {
Route::get('/', function () { return view('c_account.index'); });
Route::get('/detail/{child_id}', function () { return view('c_account.index'); });
Route::get('/edit/{child_id}', function () { return view('c_account.index'); });
Route::get('/password-edit/{child_id}', function () { return view('c_account.index'); });
Route::get('/withdrawal', function () { return view('c_account.index'); });
});
});
});
2021-10-07 04:52:20 +09:00
// ---------------------------------------- Admin Account ------------------------------------------- //
Route::group(['prefix' => 'admin'], function () {
2021-10-30 23:13:12 +09:00
Route::get('/login', '\App\Http\Controllers\Api\AdminController@checkLogin')->name('adminslogin');
Route::get('/logout', '\App\Http\Controllers\Api\AdminController@logout');
2021-10-10 06:26:44 +09:00
Route::group(['middleware' => 'auth:admins'], function () {
Route::get('/meeting', function () { return view('admin.index'); });
Route::get('/meeting/detail/{meeting_id}', function () { return view('admin.index'); });
Route::get('/meeting/edit/{meeting_id}', function () { return view('admin.index'); });
2021-10-10 06:26:44 +09:00
Route::get('/parent', function () { return view('admin.index'); });
Route::get('/parent/detail/{father_id}', function () { return view('admin.index'); });
Route::get('/parent/edit/{father_id}', function () { return view('admin.index'); });
Route::get('/parent/edit/password/{father_id}', function () { return view('admin.index'); });
Route::get('/parent/register', function () { return view('admin.index'); });
Route::get('/child', function () { return view('admin.index'); });
Route::get('/child/detail/{child_id}', function () { return view('admin.index'); });
Route::get('/child/edit/{child_id}', function () { return view('admin.index'); });
Route::get('/child/edit/password/{child_id}', function () { return view('admin.index'); });
2021-10-20 16:12:18 +09:00
});
2021-10-20 10:24:11 +09:00
});