Skip to content

Commit

Permalink
routes: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpi committed Dec 1, 2022
1 parent c8f7bdf commit 794248d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ misc
coverage.xml
resources/lang/locales.js
.phpunit.result.cache

/public/build
/public/hot
result
docker-compose.yaml
2 changes: 1 addition & 1 deletion config/activity.php
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion routes/api-remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
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 () {
Expand Down
7 changes: 4 additions & 3 deletions routes/auth.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Controllers\Auth;

/*
Expand All @@ -11,7 +12,7 @@
|
*/

// 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');
Expand All @@ -38,12 +39,12 @@
// 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 change: 1 addition & 0 deletions routes/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Controllers\Base;
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;

Expand Down

0 comments on commit 794248d

Please sign in to comment.