Files
CMT/backend/app/main.py
T
linmihigo 49c813778b Updates:
- Restructure table models
- Remove React/Next.js frontend (in favor of HTMX)
2025-08-24 20:25:24 +02:00

30 lines
725 B
Python

#!/usr/bin/env python3
"""Entry point for fastapi app
NOTE:
-
"""
from app.core.config import settings
from typing import Union
from fastapi import FastAPI
from backend.app.api.endpoints.clients import router as clients_router
from backend.app.api.endpoints.suppliers import router as supplier_router
from backend.app.api.endpoints.products import router as product_router
app = FastAPI(
title=settings.project_name,
openapi_url=f"{settings.api_v1_str}/openapi.json"
)
@app.get("/")
def read_root():
"""
"""
return {"Hello": "World"}
app.include_router(clients_router, tags=["clients"])
app.include_router(supplier_router, tags=["suppliers"])
app.include_router(product_router, tags=["products"])