diff options
| author | alex <[email protected]> | 2026-07-15 20:24:31 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-07-15 20:24:31 +0200 |
| commit | 8e12cb9bb66adc7adaf6d276133d6f235d294d23 (patch) | |
| tree | 31aa3f6a06407b39bb23d7cc724c70899795a788 /order-service/app/main.py | |
| download | order-inventory-system-8e12cb9bb66adc7adaf6d276133d6f235d294d23.tar.xz order-inventory-system-8e12cb9bb66adc7adaf6d276133d6f235d294d23.zip | |
init
Diffstat (limited to 'order-service/app/main.py')
| -rw-r--r-- | order-service/app/main.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/order-service/app/main.py b/order-service/app/main.py new file mode 100644 index 0000000..7837f11 --- /dev/null +++ b/order-service/app/main.py @@ -0,0 +1,19 @@ +import uvicorn +from fastapi import FastAPI +from app.api.v1.api import api_router +from app.core.config import settings + +app = FastAPI( + title=settings.PROJECT_NAME, +) + +app.include_router(api_router, prefix="/api/v1") + + [email protected]("/health") +def health_check(): + return {"status": "working"} + + +if __name__ == "__main__": + uvicorn.run("app.main:app", host="127.0.0.1", port=8000, reload=True) |
