mirror of
https://github.com/supanadit/todo.git
synced 2024-11-10 09:52:19 +00:00
30 lines
885 B
PHP
30 lines
885 B
PHP
|
<?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('/', "SecurityController@initSystem");
|
||
|
Route::get('/login', "SecurityController@viewLogin")->name('login');
|
||
|
|
||
|
Route::middleware('auth.web')->group(function () {
|
||
|
Route::get('/home', "TodoController@viewHome");
|
||
|
});
|
||
|
|
||
|
// This group is used for internal API provided by session
|
||
|
Route::prefix('/web')->group(function () {
|
||
|
|
||
|
});
|
||
|
|
||
|
Route::post('/web/login', "SecurityController@formLogin");
|
||
|
Route::get('/web/logout', "SecurityController@formLogout");
|