15 lines
No EOL
316 B
Python
15 lines
No EOL
316 B
Python
from fastapi import FastAPI
|
|
from routers import users, items, auth
|
|
from dotenv import load_dotenv
|
|
import os
|
|
|
|
load_dotenv()
|
|
|
|
if not os.getenv("JWT_SECRET"):
|
|
raise ValueError("JWT_SECRET not found")
|
|
|
|
app = FastAPI()
|
|
|
|
app.include_router(users.router)
|
|
app.include_router(items.router)
|
|
app.include_router(auth.router) |