cleanup, linting
This commit is contained in:
10
main.py
10
main.py
@@ -3,8 +3,8 @@
|
||||
import importlib
|
||||
import logging
|
||||
|
||||
from typing import Union, Any
|
||||
from fastapi import FastAPI, HTTPException, Response, Form
|
||||
from typing import Any
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
logger = logging.getLogger()
|
||||
@@ -33,12 +33,8 @@ Blacklisted routes
|
||||
def disallow_get():
|
||||
return util.get_blocked_response()
|
||||
|
||||
@app.get("/favicon.ico")
|
||||
def disallow_get():
|
||||
return util.get_blocked_response()
|
||||
|
||||
@app.get("/{any}")
|
||||
def disallow_get(any: Any):
|
||||
def disallow_get_any(var: Any):
|
||||
return util.get_blocked_response()
|
||||
|
||||
@app.post("/")
|
||||
|
||||
Reference in New Issue
Block a user