Add db & pydantic models + set up alembic
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Entry point for fastapi app
|
||||
|
||||
NOTE:
|
||||
-
|
||||
"""
|
||||
from app.config import settings
|
||||
from typing import Union
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json"
|
||||
)
|
||||
|
||||
@app.get("/")
|
||||
def read_root():
|
||||
"""
|
||||
"""
|
||||
return {"Hello": "World"}
|
||||
Reference in New Issue
Block a user