cleanup
This commit is contained in:
5
base.py
5
base.py
@ -17,9 +17,6 @@ constants = importlib.import_module("constants").Constants()
|
||||
util = importlib.import_module("util").Utilities(app, constants)
|
||||
glob_state = importlib.import_module("state").State(app, util, constants)
|
||||
|
||||
api_key_query = APIKeyQuery(name=constants.API_KEY_NAME, auto_error=False)
|
||||
api_key_header = APIKeyQuery(name=f"x-{constants.API_KEY_NAME}", auto_error=False)
|
||||
|
||||
|
||||
origins = [
|
||||
"https://codey.lol",
|
||||
@ -40,7 +37,7 @@ Blacklisted routes
|
||||
def disallow_get():
|
||||
return util.get_blocked_response()
|
||||
|
||||
@app.get("/{any}")
|
||||
@app.get("/{any:path}")
|
||||
def disallow_get_any(var: Any = None):
|
||||
return util.get_blocked_response()
|
||||
|
||||
|
Reference in New Issue
Block a user