Skip to content

Commit

Permalink
fix: router prefix included twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperiio committed Nov 11, 2024
1 parent 5269472 commit 461fc84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

app = FastAPI(openapi_tags=tags_metadata)

app.include_router(electricity.router, prefix="/electricity", tags=["electricity"])
app.include_router(electricity.router)

@app.get("/", include_in_schema=False)
async def root():
Expand Down

0 comments on commit 461fc84

Please sign in to comment.