routes: cleanup files
This commit is contained in:
parent
ba41fb5095
commit
e2c8a2fdea
5 changed files with 35 additions and 11 deletions
|
@ -2,6 +2,14 @@
|
|||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Admin Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /admin
|
||||
|
|
||||
*/
|
||||
Route::get('/', 'BaseController@index')->name('admin.index')->fallback();
|
||||
Route::get('/{react}', 'BaseController@index')
|
||||
->where('react', '.+');
|
||||
|
|
|
@ -2,7 +2,14 @@
|
|||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// Routes for the Wings daemon.
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Wings Remote API Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/remote
|
||||
|
|
||||
*/
|
||||
Route::post('/sftp/auth', 'SftpAuthenticationController');
|
||||
|
||||
Route::get('/servers', 'Servers\ServerDetailsController@list');
|
||||
|
|
|
@ -11,8 +11,8 @@ use Illuminate\Support\Facades\Route;
|
|||
|
|
||||
*/
|
||||
Route::group(['middleware' => 'guest'], function () {
|
||||
// These routes are defined so that we can continue to reference them programatically.
|
||||
// They all route to the same controller function which passes off to Vuejs.
|
||||
// These routes are defined so that we can continue to reference them programmatically.
|
||||
// They all route to the same controller function which passes off to React.
|
||||
Route::get('/login', 'LoginController@index')->name('auth.login');
|
||||
Route::get('/password', 'LoginController@index')->name('auth.forgot-password');
|
||||
Route::get('/password/reset/{token}', 'LoginController@index')->name('auth.reset');
|
||||
|
@ -30,7 +30,7 @@ Route::group(['middleware' => 'guest'], function () {
|
|||
// is created).
|
||||
Route::post('/password/reset', 'ResetPasswordController')->name('auth.reset-password');
|
||||
|
||||
// Catch any other combinations of routes and pass them off to the Vuejs component.
|
||||
// Catch any other combinations of routes and pass them off to the React component.
|
||||
Route::fallback('LoginController@index');
|
||||
});
|
||||
|
||||
|
|
|
@ -3,6 +3,14 @@
|
|||
use Illuminate\Support\Facades\Route;
|
||||
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /
|
||||
|
|
||||
*/
|
||||
Route::get('/', 'IndexController@index')->name('index')->fallback();
|
||||
Route::get('/account', 'IndexController@index')
|
||||
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Server Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /server
|
||||
|
|
||||
*/
|
||||
Route::get('/')->name('server.index');
|
||||
Route::get('/console')->name('server.console');
|
||||
|
|
Loading…
Reference in a new issue