phpldapadmin/routes/web.php

40 lines
1.1 KiB
PHP
Raw Normal View History

2019-05-14 07:52:49 +00:00
<?php
2020-08-23 01:37:08 +00:00
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\Auth\LoginController;
2019-05-14 07:52:49 +00: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!
|
*/
Route::group(['prefix' => LaravelLocalization::setLocale()], function() {
Auth::routes([
'login' => TRUE,
'logout' => TRUE,
'reset' => FALSE,
'confirm' => FALSE,
'verify' => FALSE,
'register' => FALSE,
]);
Route::get('home',[HomeController::class,'home']);
Route::get('info',[HomeController::class,'info']);
Route::post('render',[HomeController::class,'render']);
});
2020-09-05 23:46:27 +00:00
Route::redirect('/','home');
Route::get('logout',[LoginController::class,'logout']);
2020-09-15 12:40:32 +00:00
Route::group(['prefix'=>'user'],function() {
Route::get('image',[HomeController::class,'user_image']);
2020-09-15 12:40:32 +00:00
});