2017-04-02 01:01:10 +00:00
|
|
|
<?php
|
2018-06-21 06:05:35 +00:00
|
|
|
|
2019-03-24 00:41:43 +00:00
|
|
|
Route::get('/', 'IndexController@index')->name('index')->fallback();
|
2018-07-05 02:38:23 +00:00
|
|
|
Route::get('/account', 'IndexController@index')->name('account');
|
2017-05-05 20:27:36 +00:00
|
|
|
|
2017-04-02 01:01:10 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Account API Controller Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /account/api
|
|
|
|
|
|
|
|
|
*/
|
2018-03-01 05:30:39 +00:00
|
|
|
Route::group(['prefix' => 'account/api'], function () {
|
|
|
|
Route::get('/', 'ClientApiController@index')->name('account.api');
|
|
|
|
Route::get('/new', 'ClientApiController@create')->name('account.api.new');
|
|
|
|
Route::post('/new', 'ClientApiController@store');
|
|
|
|
Route::delete('/revoke/{identifier}', 'ClientApiController@delete')->name('account.api.revoke');
|
|
|
|
});
|
2017-04-02 01:01:10 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Account Security Controller Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /account/security
|
|
|
|
|
|
|
|
|
*/
|
2018-06-21 06:05:35 +00:00
|
|
|
Route::group(['prefix' => 'account/two_factor'], function () {
|
|
|
|
Route::get('/', 'SecurityController@index')->name('account.two_factor');
|
|
|
|
Route::post('/totp', 'SecurityController@store')->name('account.two_factor.enable');
|
|
|
|
Route::post('/totp/disable', 'SecurityController@delete')->name('account.two_factor.disable');
|
2017-04-02 01:01:10 +00:00
|
|
|
});
|
2018-05-27 00:20:36 +00:00
|
|
|
|
2019-03-24 00:41:43 +00:00
|
|
|
Route::get('/{vue}', 'IndexController@index')
|
|
|
|
->where('vue', '^(?!(\/)?(api|admin|daemon)).+');
|