2017-04-02 03:01:10 +02:00
|
|
|
<?php
|
2018-06-21 08:05:35 +02:00
|
|
|
|
2018-05-27 02:20:36 +02:00
|
|
|
Route::get('/', 'IndexController@index')->name('index');
|
2018-07-05 04:38:23 +02:00
|
|
|
Route::get('/account', 'IndexController@index')->name('account');
|
2017-05-05 22:27:36 +02:00
|
|
|
|
2017-04-02 03:01:10 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Account Controller Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /account
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Account API Controller Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /account/api
|
|
|
|
|
|
|
|
|
*/
|
2018-03-01 06:30:39 +01: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 03:01:10 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Account Security Controller Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /account/security
|
|
|
|
|
|
|
|
|
*/
|
2018-06-21 08:05:35 +02: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 03:01:10 +02:00
|
|
|
});
|
2018-05-27 02:20:36 +02:00
|
|
|
|
|
|
|
// Catch any other combinations of routes and pass them off to the Vuejs component.
|
|
|
|
Route::fallback('IndexController@index');
|