Skip to content

Commit 23e40df

Browse files
committed
refactor(routes): simplified middleware usage
1 parent 67a3656 commit 23e40df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/config/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
Flight::route('GET /@plugin_name', [DocsController::class, 'pluginGet'], false, 'plugin');
8585
});
8686
});
87-
}, [new HeaderSecurityMiddleware()]);
87+
}, [HeaderSecurityMiddleware::class]);
8888

8989
/*
9090
* 404 Handler

0 commit comments

Comments
 (0)