2025-05-17 02:34:44 +00:00

16 lines
423 B
Python

import uvicorn
from fastapi import FastAPI
from app.api.routes import router as api_router
from app.core.config import settings
app = FastAPI(
title=settings.PROJECT_NAME,
description="A simple Todo API built with FastAPI and SQLite",
version="0.1.0",
)
app.include_router(api_router, prefix=settings.API_V1_STR)
if __name__ == "__main__":
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)