mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-11-05 21:02:25 +01:00
feat: Add authentication handlers to HTTPStatsServer configuration
This commit is contained in:
1 parent
8d14b93874
commit
75c4967bd6
1 file changed
+3
@@ -369,6 +369,9 @@ class HTTPStatsServer:
|
||||
"tools.trailing_slash.on": False,
|
||||
# Custom error handler to return JSON for API endpoints
|
||||
"error_page.401": self._json_error_handler,
|
||||
# Add auth handlers to config so they're accessible in endpoints
|
||||
"jwt_handler": self.jwt_handler,
|
||||
"token_manager": self.token_manager,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user