routes: fix imports

This commit is contained in:
Matthew Penner 2022-12-01 11:49:54 -07:00
parent c8f7bdf9cb
commit 794248d4d7
No known key found for this signature in database
5 changed files with 13 additions and 5 deletions

5
.gitignore vendored
View file

@ -29,3 +29,8 @@ misc
coverage.xml coverage.xml
resources/lang/locales.js resources/lang/locales.js
.phpunit.result.cache .phpunit.result.cache
/public/build
/public/hot
result
docker-compose.yaml

View file

@ -1,7 +1,7 @@
<?php <?php
return [ 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), 'prune_days' => env('APP_ACTIVITY_PRUNE_DAYS', 90),
// If set to true activity log entries generated by an admin user that is not also // If set to true activity log entries generated by an admin user that is not also

View file

@ -15,9 +15,10 @@ Route::group(['prefix' => '/servers/{uuid}'], function () {
Route::get('/install', [Remote\Servers\ServerInstallController::class, 'index']); Route::get('/install', [Remote\Servers\ServerInstallController::class, 'index']);
Route::post('/install', [Remote\Servers\ServerInstallController::class, 'store']); 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/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
Route::get('/transfer/success', [Remote\Servers\ServerTransferController::class, 'success']); 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 () { Route::group(['prefix' => '/backups'], function () {

View file

@ -1,5 +1,6 @@
<?php <?php
use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Controllers\Auth; 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. // 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('/login', [Auth\LoginController::class, 'index'])->name('auth.login');
Route::get('/password', [Auth\LoginController::class, 'index'])->name('auth.forgot-password'); Route::get('/password', [Auth\LoginController::class, 'index'])->name('auth.forgot-password');
@ -38,12 +39,12 @@ Route::middleware(['throttle:authentication'])->group(function () {
// is created). // is created).
Route::post('/password/reset', Auth\ResetPasswordController::class)->name('auth.reset-password'); 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. // so it cannot be used unless you're already logged in.
Route::post('/logout', [Auth\LoginController::class, 'logout']) Route::post('/logout', [Auth\LoginController::class, 'logout'])
->withoutMiddleware('guest') ->withoutMiddleware('guest')
->middleware('auth') ->middleware('auth')
->name('auth.logout'); ->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']); Route::fallback([Auth\LoginController::class, 'index']);

View file

@ -1,5 +1,6 @@
<?php <?php
use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Controllers\Base; use Pterodactyl\Http\Controllers\Base;
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication; use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;