We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c48c9 commit 88a7ac3Copy full SHA for 88a7ac3
app/main.py
@@ -22,17 +22,14 @@ async def lifespan(app: FastAPI):
22
pass
23
24
25
-appLimiter = limiter
26
-
27
28
app = FastAPI(
29
lifespan=lifespan,
30
title="pynews-server",
31
description="PyNews Server",
32
)
33
34
35
-app.state.limiter = appLimiter
+app.state.limiter = limiter
36
app.add_exception_handler(429, _rate_limit_exceeded_handler)
37
38
app.include_router(setup_router_v2(), prefix="/api")
0 commit comments