Files
fast_api_livetse/backend/main.py
Anahita-Mahmoudi ec86cdc528 feat: implement advanced reward management and wheel customization
- Add customizable background color
- Add wheel animations and sound effects
- Add reward description field and winner modal
- Change font to Dana
- Add configurable reward probabilities
- Support reward types (Empty, Discount Code, LiveCoin)
- Replace reward title with reward type selector
- Allow wheel page title customization from admin panel
2026-06-10 14:55:07 +03:30

28 lines
634 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.db.session import engine, Base
from app.db.models import Item
from api.admin import router as admin_router
from api.user import router as user_router
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=[
"http://localhost:3000",
"http://127.0.0.1:3000",
],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
# ✅ بعد router ها
app.include_router(user_router, prefix="/user")
app.include_router(admin_router, prefix="/admin")
Base.metadata.create_all(bind=engine)