- 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
28 lines
634 B
Python
28 lines
634 B
Python
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) |