mirror of
https://github.com/shadoll/scatcher.git
synced 2026-08-28 03:28:03 +00:00
Add base controller, catch controller, and history controller
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class BaseController:
|
||||
RESTRICTED_NAMESPACES = [
|
||||
"__history",
|
||||
"__last_request",
|
||||
"__last",
|
||||
"__clear",
|
||||
"docs",
|
||||
"redoc",
|
||||
"api",
|
||||
]
|
||||
|
||||
def check_namespace(self, namespace: str) -> bool:
|
||||
if namespace in self.RESTRICTED_NAMESPACES:
|
||||
return False
|
||||
return True
|
||||
Reference in New Issue
Block a user