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