mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 17:19:37 +00:00
refactor
This commit is contained in:
parent
ca86d03b55
commit
51d43d9977
@ -26,7 +26,7 @@ final class RssBridge
|
|||||||
new SecurityMiddleware(),
|
new SecurityMiddleware(),
|
||||||
new MaintenanceMiddleware(),
|
new MaintenanceMiddleware(),
|
||||||
new BasicAuthMiddleware(),
|
new BasicAuthMiddleware(),
|
||||||
new TokenAuthentication(),
|
new TokenAuthenticationMiddleware(),
|
||||||
];
|
];
|
||||||
$action = function ($req) use ($handler) {
|
$action = function ($req) use ($handler) {
|
||||||
return $handler($req);
|
return $handler($req);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
class TokenAuthentication implements Middleware
|
class TokenAuthenticationMiddleware implements Middleware
|
||||||
{
|
{
|
||||||
public function __invoke(Request $request, $next): Response
|
public function __invoke(Request $request, $next): Response
|
||||||
{
|
{
|
Loading…
Reference in New Issue
Block a user