WIP: initial fastapi endpoint implementation
Client endpoint - GET & POST implemented
This commit is contained in:
+8
-3
@@ -4,17 +4,22 @@
|
||||
NOTE:
|
||||
-
|
||||
"""
|
||||
from app.config import settings
|
||||
from app.core.config import settings
|
||||
from typing import Union
|
||||
from fastapi import FastAPI
|
||||
from app.api.clients.endpoints import router as clients_router
|
||||
|
||||
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json"
|
||||
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"])
|
||||
|
||||
Reference in New Issue
Block a user