Add Astro moderation queue

This commit is contained in:
ik
2026-09-03 08:11:23 +07:00
parent a528fc707f
commit 03a0ecb5f4
6 changed files with 53 additions and 7 deletions
+6 -1
View File
@@ -21,7 +21,12 @@ from .storage import ScreenshotError, signed_screenshot_url, upload_screenshot
app = FastAPI(title="RF4 Spotter API", version="0.1.0")
app.add_middleware(CORSMiddleware, allow_origins=["http://localhost:4321"], allow_methods=["GET"], allow_headers=["*"])
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:4321", "http://127.0.0.1:4321"],
allow_methods=["GET", "PATCH"],
allow_headers=["Authorization", "Content-Type"],
)
Db = Annotated[Session, Depends(get_session)]
_submissions: dict[str, deque[datetime]] = defaultdict(deque)