real middleman: BTCPay payment gate + webhook + Printful adapter + checkout redirect
This commit is contained in:
@@ -6,7 +6,7 @@ from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
from app.database import Base, engine
|
||||
from app.routers import admin, analytics, auth, customers, health, orders, products, suppliers
|
||||
from app.routers import admin, analytics, auth, customers, health, orders, products, suppliers, webhooks
|
||||
from app.version import VERSION
|
||||
|
||||
# Idempotent — schema.sql is canonical and already applied; create_all only
|
||||
@@ -31,6 +31,7 @@ app.include_router(orders.router, prefix="/api/orders", tags=["orders"])
|
||||
app.include_router(customers.router, prefix="/api/customers", tags=["customers"])
|
||||
app.include_router(admin.router, prefix="/api/admin", tags=["admin"])
|
||||
app.include_router(analytics.router, prefix="/api/analytics", tags=["analytics"])
|
||||
app.include_router(webhooks.router, prefix="/api/webhooks", tags=["webhooks"])
|
||||
|
||||
|
||||
@app.get("/")
|
||||
|
||||
Reference in New Issue
Block a user