2019-05-14 17:52:49 +10:00
|
|
|
<?php
|
|
|
|
|
2020-08-23 11:37:08 +10:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2025-02-26 17:19:23 +11:00
|
|
|
use App\Http\Controllers\HomeController;
|
2021-12-03 13:36:25 +11:00
|
|
|
use App\Http\Controllers\Auth\LoginController;
|
2025-02-26 17:19:23 +11:00
|
|
|
use App\Http\Middleware\AllowAnonymous;
|
2021-12-03 13:36:25 +11:00
|
|
|
|
2019-05-14 17:52:49 +10:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2025-01-12 16:21:36 +11:00
|
|
|
Auth::routes([
|
|
|
|
'login' => TRUE,
|
|
|
|
'logout' => TRUE,
|
|
|
|
'reset' => FALSE,
|
|
|
|
'confirm' => FALSE,
|
|
|
|
'verify' => FALSE,
|
|
|
|
'register' => FALSE,
|
|
|
|
]);
|
|
|
|
|
2021-12-03 13:36:25 +11:00
|
|
|
Route::get('logout',[LoginController::class,'logout']);
|
2020-09-15 22:40:32 +10:00
|
|
|
|
2025-02-26 17:19:23 +11:00
|
|
|
Route::controller(HomeController::class)->group(function() {
|
|
|
|
Route::middleware(AllowAnonymous::class)->group(function() {
|
|
|
|
Route::get('/','home');
|
|
|
|
Route::get('info','info');
|
|
|
|
Route::post('dn','dn_frame');
|
|
|
|
Route::get('debug','debug');
|
|
|
|
Route::get('import','import_frame');
|
|
|
|
Route::get('schema','schema_frame');
|
|
|
|
|
|
|
|
Route::group(['prefix'=>'user'],function() {
|
|
|
|
Route::get('image','user_image');
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::get('entry/export/{id}','entry_export');
|
|
|
|
Route::post('entry/password/check/','entry_password_check');
|
|
|
|
Route::post('entry/attr/add/{id}','entry_attr_add');
|
|
|
|
Route::post('entry/objectclass/add/{id}','entry_objectclass_add');
|
|
|
|
Route::post('entry/update/commit','entry_update');
|
|
|
|
Route::post('entry/update/pending','entry_pending_update');
|
|
|
|
|
|
|
|
Route::post('import/process/{type}','import');
|
|
|
|
});
|
|
|
|
});
|