mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-25 10:32:31 +01:00
65 lines
2.2 KiB
PHP
65 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* Pterodactyl - Panel
|
|
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
|
*
|
|
* This software is licensed under the terms of the MIT license.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
Route::get('/', 'IndexController@index')->name('index');
|
|
Route::get('/dashboard/servers', 'DashboardController@servers')->name('dashboard.servers');
|
|
Route::get('/status/{server}', 'IndexController@status')->name('index.status');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Account Controller Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Endpoint: /account
|
|
|
|
|
*/
|
|
Route::group(['prefix' => 'account'], function () {
|
|
Route::get('/', 'AccountController@index')->name('account');
|
|
|
|
Route::post('/', 'AccountController@update');
|
|
});
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Account API Controller Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Endpoint: /account/api
|
|
|
|
|
*/
|
|
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');
|
|
});
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Account Security Controller Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Endpoint: /account/security
|
|
|
|
|
*/
|
|
Route::group(['prefix' => 'account/security'], function () {
|
|
Route::get('/', 'SecurityController@index')->name('account.security');
|
|
Route::get('/revoke/{id}', 'SecurityController@revoke')->name('account.security.revoke');
|
|
|
|
Route::put('/totp', 'SecurityController@generateTotp')->name('account.security.totp');
|
|
|
|
Route::post('/totp', 'SecurityController@setTotp')->name('account.security.totp.set');
|
|
|
|
Route::delete('/totp', 'SecurityController@disableTotp')->name('account.security.totp.disable');
|
|
});
|
|
|
|
// Catch any other combinations of routes and pass them off to the Vuejs component.
|
|
Route::fallback('IndexController@index');
|