Skip to content

Commit

Permalink
set docs and recod paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gantoine committed Sep 4, 2024
1 parent 1ffe63a commit deae0b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
yield


app = FastAPI(title="RomM API", version=get_version(), lifespan=lifespan)
app = FastAPI(
title="RomM API",
version=get_version(),
lifespan=lifespan,
docs_url="/api/docs",
redoc_url="/api/redoc",
)

app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit deae0b9

Please sign in to comment.