Files
CMT/backend/app/main.py
T

30 lines
701 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 app.api.clients.endpoints import router as clients_router
from app.api.suppliers.endpoints import router as supplier_router
from app.api.products.endpoints 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"])