Files
tfm_ainventory/backend/main.py
2026-04-10 13:44:21 +03:00

13 lines
295 B
Python

from fastapi import FastAPI
from . import models
from .database import engine
# Create the database tables
models.Base.metadata.create_all(bind=engine)
app = FastAPI(title="Inventory PWA API", version="0.1.0")
@app.get("/")
def read_root():
return {"message": "Inventory API is running"}