Skip to content

Commit b0803ef

Browse files
committed
changed routes for reverse proxy setup
1 parent e47558c commit b0803ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from routes.transactions import router as TransactionRouter
66

77

8-
app = FastAPI(debug=True)
8+
app = FastAPI(docs_url="/ths/docs", redoc_url="/ths/redocs", debug=True)
99
origins = ["*"]
1010

1111
app.add_middleware(
@@ -16,11 +16,11 @@
1616
allow_headers=["*"],
1717
)
1818

19-
app.include_router(TransactionRouter, tags=["transaction"], prefix="/transaction")
19+
app.include_router(TransactionRouter, tags=["transaction"], prefix="/ths/transaction")
2020

2121
# app.include_router(ProjectRouter, tags=["Project"], prefix="/project")
2222

2323

24-
@app.get("/", tags=["Root"])
24+
@app.get("/ths", tags=["Root"])
2525
async def read_root():
2626
return {"message": "Welcome to Transaction Health Service!"}

0 commit comments

Comments
 (0)