2017-04-02 01:01:10 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Pterodactyl - Panel
|
|
|
|
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
|
|
|
*
|
2017-09-26 02:43:01 +00:00
|
|
|
* This software is licensed under the terms of the MIT license.
|
|
|
|
* https://opensource.org/licenses/MIT
|
2017-04-02 01:01:10 +00:00
|
|
|
*/
|
2018-05-27 00:20:36 +00:00
|
|
|
Route::get('/', 'IndexController@index')->name('index');
|
2018-05-27 06:17:02 +00:00
|
|
|
Route::get('/dashboard/servers', 'DashboardController@servers')->name('dashboard.servers');
|
2017-05-05 20:27:36 +00:00
|
|
|
Route::get('/status/{server}', 'IndexController@status')->name('index.status');
|
|
|
|
|
2017-04-02 01:01:10 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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
|
|
|
|
|
|
|
|
|
*/
|
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/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');
|
|
|
|
|
2017-09-26 01:58:16 +00:00
|
|
|
Route::post('/totp', 'SecurityController@setTotp')->name('account.security.totp.set');
|
2017-04-02 01:01:10 +00:00
|
|
|
|
2017-09-26 01:58:16 +00:00
|
|
|
Route::delete('/totp', 'SecurityController@disableTotp')->name('account.security.totp.disable');
|
2017-04-02 01:01:10 +00:00
|
|
|
});
|
2018-05-27 00:20:36 +00:00
|
|
|
|
|
|
|
// Catch any other combinations of routes and pass them off to the Vuejs component.
|
|
|
|
Route::fallback('IndexController@index');
|