-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (21 loc) · 805 Bytes
/
main.py
File metadata and controls
30 lines (21 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from __future__ import annotations
import uvicorn
from fastapi import FastAPI
from .routes.discovery import router as discovery_router
from .routes.catalog import router as catalog_router
from .routes.checkout import router as checkout_router
from .routes.orders import router as orders_router
from .routes.testing import router as testing_router
app = FastAPI(title="UCP Shopify Adapter (Mock)", version="0.1.0")
app.include_router(discovery_router)
app.include_router(catalog_router)
app.include_router(checkout_router)
app.include_router(orders_router)
app.include_router(testing_router)
@app.get("/health")
async def health() -> dict:
return {"status": "ok"}
def run() -> None:
uvicorn.run("app.main:app", host="127.0.0.1", port=8183, reload=True)
if __name__ == "__main__":
run()