1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-28 04:42:29 +01:00
Pterodactyl-Panel/routes/base.php

61 lines
2.0 KiB
PHP
Raw Normal View History

2017-04-02 03:01:10 +02:00
<?php
/**
* Pterodactyl - Panel
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
*
2017-09-26 04:43:01 +02:00
* This software is licensed under the terms of the MIT license.
* https://opensource.org/licenses/MIT
2017-04-02 03:01:10 +02:00
*/
Route::get('/', 'IndexController@getIndex')->name('index');
Route::get('/status/{server}', 'IndexController@status')->name('index.status');
2017-04-02 03:01:10 +02: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
|
*/
Route::group(['prefix' => 'account/api'], function () {
Route::get('/', 'APIController@index')->name('account.api');
Route::get('/new', 'APIController@create')->name('account.api.new');
2017-04-02 03:01:10 +02:00
Route::post('/new', 'APIController@store');
2017-04-02 03:01:10 +02:00
Route::delete('/revoke/{key}', 'APIController@revoke')->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');
2017-04-02 03:01:10 +02:00
Route::delete('/totp', 'SecurityController@disableTotp')->name('account.security.totp.disable');
2017-04-02 03:01:10 +02:00
});