init commit
This commit is contained in:
10
app/api/main.py
Normal file
10
app/api/main.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from fastapi import FastAPI
|
||||
from app.core.config import settings
|
||||
from app.api.routes import templates as templates_router
|
||||
|
||||
app = FastAPI(title="TG Autoposting API", version="0.1.0")
|
||||
app.include_router(templates_router.router)
|
||||
|
||||
@app.get("/health")
|
||||
async def health():
|
||||
return {"status": "ok", "env": settings.env}
|
||||
Reference in New Issue
Block a user