mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 00:52:43 +01:00
routes: fix imports
This commit is contained in:
parent
c8f7bdf9cb
commit
794248d4d7
5
.gitignore
vendored
5
.gitignore
vendored
@ -29,3 +29,8 @@ misc
|
||||
coverage.xml
|
||||
resources/lang/locales.js
|
||||
.phpunit.result.cache
|
||||
|
||||
/public/build
|
||||
/public/hot
|
||||
result
|
||||
docker-compose.yaml
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// The number of days ellapsed before old activity log entries are deleted.
|
||||
// The number of days elapsed before old activity log entries are deleted.
|
||||
'prune_days' => env('APP_ACTIVITY_PRUNE_DAYS', 90),
|
||||
|
||||
// If set to true activity log entries generated by an admin user that is not also
|
||||
|
@ -15,9 +15,10 @@ Route::group(['prefix' => '/servers/{uuid}'], function () {
|
||||
Route::get('/install', [Remote\Servers\ServerInstallController::class, 'index']);
|
||||
Route::post('/install', [Remote\Servers\ServerInstallController::class, 'store']);
|
||||
|
||||
Route::post('/archive', [Remote\Servers\ServerTransferController::class, 'archive']);
|
||||
Route::get('/transfer/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
|
||||
Route::get('/transfer/success', [Remote\Servers\ServerTransferController::class, 'success']);
|
||||
Route::post('/transfer/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
|
||||
Route::post('/transfer/success', [Remote\Servers\ServerTransferController::class, 'success']);
|
||||
});
|
||||
|
||||
Route::group(['prefix' => '/backups'], function () {
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Pterodactyl\Http\Controllers\Auth;
|
||||
|
||||
/*
|
||||
@ -11,7 +12,7 @@ use Pterodactyl\Http\Controllers\Auth;
|
||||
|
|
||||
*/
|
||||
|
||||
// These routes are defined so that we can continue to reference them programatically.
|
||||
// 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', [Auth\LoginController::class, 'index'])->name('auth.login');
|
||||
Route::get('/password', [Auth\LoginController::class, 'index'])->name('auth.forgot-password');
|
||||
@ -38,12 +39,12 @@ Route::middleware(['throttle:authentication'])->group(function () {
|
||||
// is created).
|
||||
Route::post('/password/reset', Auth\ResetPasswordController::class)->name('auth.reset-password');
|
||||
|
||||
// Remove the guest middleware and apply the authenticated middleware to this endpoint
|
||||
// Remove the guest middleware and apply the authenticated middleware to this endpoint,
|
||||
// so it cannot be used unless you're already logged in.
|
||||
Route::post('/logout', [Auth\LoginController::class, 'logout'])
|
||||
->withoutMiddleware('guest')
|
||||
->middleware('auth')
|
||||
->name('auth.logout');
|
||||
|
||||
// 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([Auth\LoginController::class, 'index']);
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Pterodactyl\Http\Controllers\Base;
|
||||
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user