18 lines
507 B
Python
18 lines
507 B
Python
import uvicorn
|
|
from fastapi import FastAPI
|
|
from app.api.todos import router as todos_router
|
|
from app.api.health import router as health_router
|
|
|
|
app = FastAPI(
|
|
title="Todo API",
|
|
description="A simple TODO API built with FastAPI and SQLite",
|
|
version="0.1.0",
|
|
)
|
|
|
|
# Include routers
|
|
app.include_router(todos_router, prefix="/api/todos", tags=["todos"])
|
|
app.include_router(health_router, tags=["health"])
|
|
|
|
if __name__ == "__main__":
|
|
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)
|