58 lines
1.9 KiB
PHP
Executable File
58 lines
1.9 KiB
PHP
Executable File
<?php
|
|
|
|
use App\Admin\Controllers\ExpertManagementController;
|
|
use App\Admin\Controllers\PermissionManagementController;
|
|
use App\Admin\Controllers\RoleManagementController;
|
|
use App\Admin\Controllers\UserManagementController;
|
|
use App\User\Controllers\AuthController;
|
|
use App\User\Controllers\GatewayManagementController;
|
|
use App\User\Controllers\CityController;
|
|
use App\User\Controllers\ProfileController;
|
|
use App\User\Controllers\ProvinceController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::prefix('auth')
|
|
->name('Auth.')
|
|
->controller(AuthController::class)
|
|
->group(function () {
|
|
Route::post('register', 'register')->name('register');
|
|
Route::post('login', 'login')->name('login');
|
|
Route::post('logout', 'logout')->name('logout');
|
|
});
|
|
|
|
Route::prefix('profile')
|
|
->name('profile.')
|
|
->middleware('auth')
|
|
->controller(ProfileController::class)
|
|
->group(function () {
|
|
Route::get('info', 'info')->name('info');
|
|
Route::post('edit', 'edit')->name('edit');
|
|
Route::post('change_password', 'changePassword')->name('changePassword');
|
|
});
|
|
|
|
Route::prefix('user_gateway')
|
|
->name('userGateway.')
|
|
->middleware(['auth'])
|
|
->controller(GatewayManagementController::class)
|
|
->group(function () {
|
|
Route::get('/', 'index')->name('index');
|
|
Route::post('/', 'store')->name('store');
|
|
Route::get('/{gateway}', 'show')->name('show');
|
|
Route::post('/{gateway}', 'update')->name('update');
|
|
Route::delete('/{gateway}', 'destroy')->name('destroy');
|
|
});
|
|
|
|
Route::prefix('province')
|
|
->name('province.')
|
|
->controller(ProvinceController::class)
|
|
->group(function () {
|
|
Route::get('list', 'list')->name('list');
|
|
});
|
|
|
|
Route::prefix('city')
|
|
->name('city.')
|
|
->controller(CityController::class)
|
|
->group(function () {
|
|
Route::get('list', 'list')->name('list');
|
|
});
|