Skip to content

Commit 794248d

Browse files
committed
routes: fix imports
1 parent c8f7bdf commit 794248d

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ misc
2929
coverage.xml
3030
resources/lang/locales.js
3131
.phpunit.result.cache
32+
33+
/public/build
34+
/public/hot
35+
result
36+
docker-compose.yaml

config/activity.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return [
4-
// The number of days ellapsed before old activity log entries are deleted.
4+
// The number of days elapsed before old activity log entries are deleted.
55
'prune_days' => env('APP_ACTIVITY_PRUNE_DAYS', 90),
66

77
// If set to true activity log entries generated by an admin user that is not also

routes/api-remote.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
Route::get('/install', [Remote\Servers\ServerInstallController::class, 'index']);
1616
Route::post('/install', [Remote\Servers\ServerInstallController::class, 'store']);
1717

18-
Route::post('/archive', [Remote\Servers\ServerTransferController::class, 'archive']);
1918
Route::get('/transfer/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
2019
Route::get('/transfer/success', [Remote\Servers\ServerTransferController::class, 'success']);
20+
Route::post('/transfer/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
21+
Route::post('/transfer/success', [Remote\Servers\ServerTransferController::class, 'success']);
2122
});
2223

2324
Route::group(['prefix' => '/backups'], function () {

routes/auth.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Illuminate\Support\Facades\Route;
34
use Pterodactyl\Http\Controllers\Auth;
45

56
/*
@@ -11,7 +12,7 @@
1112
|
1213
*/
1314

14-
// These routes are defined so that we can continue to reference them programatically.
15+
// These routes are defined so that we can continue to reference them programmatically.
1516
// They all route to the same controller function which passes off to React.
1617
Route::get('/login', [Auth\LoginController::class, 'index'])->name('auth.login');
1718
Route::get('/password', [Auth\LoginController::class, 'index'])->name('auth.forgot-password');
@@ -38,12 +39,12 @@
3839
// is created).
3940
Route::post('/password/reset', Auth\ResetPasswordController::class)->name('auth.reset-password');
4041

41-
// Remove the guest middleware and apply the authenticated middleware to this endpoint
42+
// Remove the guest middleware and apply the authenticated middleware to this endpoint,
4243
// so it cannot be used unless you're already logged in.
4344
Route::post('/logout', [Auth\LoginController::class, 'logout'])
4445
->withoutMiddleware('guest')
4546
->middleware('auth')
4647
->name('auth.logout');
4748

48-
// Catch any other combinations of routes and pass them off to the Vuejs component.
49+
// Catch any other combinations of routes and pass them off to the React component.
4950
Route::fallback([Auth\LoginController::class, 'index']);

routes/base.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Illuminate\Support\Facades\Route;
34
use Pterodactyl\Http\Controllers\Base;
45
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
56

0 commit comments

Comments
 (0)