Use more logical route binding to not reveal resources on the API unless authenticated.
This commit is contained in:
parent
17544481b5
commit
3e327b8b0e
4 changed files with 72 additions and 35 deletions
|
@ -19,6 +19,7 @@ use Pterodactyl\Http\Middleware\AccessingValidServer;
|
|||
use Illuminate\View\Middleware\ShareErrorsFromSession;
|
||||
use Pterodactyl\Http\Middleware\RedirectIfAuthenticated;
|
||||
use Illuminate\Auth\Middleware\AuthenticateWithBasicAuth;
|
||||
use Pterodactyl\Http\Middleware\Api\ApiSubstituteBindings;
|
||||
use Illuminate\Foundation\Http\Middleware\ValidatePostSize;
|
||||
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
|
||||
use Pterodactyl\Http\Middleware\Server\AuthenticateAsSubuser;
|
||||
|
@ -68,7 +69,7 @@ class Kernel extends HttpKernel
|
|||
],
|
||||
'api' => [
|
||||
'throttle:120,1',
|
||||
SubstituteBindings::class,
|
||||
ApiSubstituteBindings::class,
|
||||
SetSessionDriver::class,
|
||||
AuthenticateKey::class,
|
||||
AuthenticateUser::class,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue