Skip to content

Commit

Permalink
Merge pull request #1166 from rommapp/romm-1165
Browse files Browse the repository at this point in the history
[ROMM-1165] set docs and recod paths
  • Loading branch information
gantoine authored Sep 4, 2024
2 parents 67e4378 + deae0b9 commit 3094d46
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 3094d46

Please sign in to comment.