Skip to content

Commit b53d3e4

Browse files
committed
fix: add uvicorn in import and rm slash in include_router
1 parent 36cb9b5 commit b53d3e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import uvicorn
12
from fastapi import FastAPI
23
from contextlib import asynccontextmanager
34
from fastapi.middleware.cors import CORSMiddleware
@@ -30,7 +31,7 @@ async def lifespan(app: FastAPI):
3031
allow_headers=["*"],
3132
)
3233

33-
app.include_router(api_router, prefix="/api/")
34+
app.include_router(api_router, prefix="/api")
3435

3536
if __name__ == "__main__":
3637
uvicorn.run(app="main:app", reload=True)

0 commit comments

Comments
 (0)