13 lines
295 B
Python
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"}
|