misc_pterodactyl-panel/routes/base.php

48 lines
1.6 KiB
PHP
Raw Normal View History

2017-04-02 01:01:10 +00:00
<?php
Route::get('/', 'IndexController@index')->name('index');
2018-07-05 02:38:23 +00:00
Route::get('/account', 'IndexController@index')->name('account');
2017-04-02 01:01:10 +00:00
/*
|--------------------------------------------------------------------------
| Account Controller Routes
|--------------------------------------------------------------------------
|
| Endpoint: /account
|
*/
/*
|--------------------------------------------------------------------------
| 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
|
*/
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
});
// Catch any other combinations of routes and pass them off to the Vuejs component.
Route::fallback('IndexController@index');