We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e47558c commit b0803efCopy full SHA for b0803ef
main.py
@@ -5,7 +5,7 @@
5
from routes.transactions import router as TransactionRouter
6
7
8
-app = FastAPI(debug=True)
+app = FastAPI(docs_url="/ths/docs", redoc_url="/ths/redocs", debug=True)
9
origins = ["*"]
10
11
app.add_middleware(
@@ -16,11 +16,11 @@
16
allow_headers=["*"],
17
)
18
19
-app.include_router(TransactionRouter, tags=["transaction"], prefix="/transaction")
+app.include_router(TransactionRouter, tags=["transaction"], prefix="/ths/transaction")
20
21
# app.include_router(ProjectRouter, tags=["Project"], prefix="/project")
22
23
24
-@app.get("/", tags=["Root"])
+@app.get("/ths", tags=["Root"])
25
async def read_root():
26
return {"message": "Welcome to Transaction Health Service!"}
0 commit comments