17 lines
408 B
Python
17 lines
408 B
Python
from fastapi import FastAPI
|
|
from . import models
|
|
from .database import engine
|
|
from app.routers import users_router, auth_router
|
|
|
|
models.Base.metadata.create_all(bind=engine)
|
|
|
|
app = FastAPI()
|
|
|
|
app.include_router(users_router, prefix="/api/users", tags=["users"])
|
|
app.include_router(auth_router, prefix="/api/auth", tags=["auth"])
|
|
|
|
|
|
@app.get("/")
|
|
def read_root():
|
|
return {"message": "Hello from FastAPI!"}
|