Files
MultiChatOverlay/main.py
ramforth 56bf044bb6 Set up database.py
:wq

A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
B
B
B
B
B
B
A
A
2025-11-16 18:16:10 +01:00

15 lines
423 B
Python

from fastapi import FastAPI
from . import models
from .database import engine
# This line tells SQLAlchemy to create all the tables based on the models
# we defined. It will create the `multichat_overlay.db` file with the
# 'users' and 'settings' tables if they don't exist.
models.Base.metadata.create_all(bind=engine)
app = FastAPI()
@app.get("/")
async def read_root():
return {"message": "MultiChatOverlay API"}