10 lines
315 B
Python
10 lines
315 B
Python
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} |