forum-app/backend/main.py

13 lines
232 B
Python
Raw Normal View History

2024-04-06 17:58:20 +00:00
from fastapi import FastAPI
2024-04-05 23:01:15 +00:00
2024-04-06 17:58:20 +00:00
import models
from database import engine
from routers import auth, forum
2024-04-05 23:01:15 +00:00
app = FastAPI()
2024-04-06 17:58:20 +00:00
models.Base.metadata.create_all(bind=engine)
2024-04-05 23:28:27 +00:00
2024-04-06 17:58:20 +00:00
app.include_router(forum.router)
2024-04-06 18:50:59 +00:00
app.include_router(auth.router)