Working flow authorize

This commit is contained in:
2025-09-16 12:45:22 -04:00
parent 47e3fb443b
commit 630584512e
5 changed files with 132 additions and 61 deletions

View File

@@ -2,6 +2,7 @@ from fastapi import FastAPI
from .database import engine
from . import models
from .routers import payment
from .routers.transaction import transaction_router
from fastapi.middleware.cors import CORSMiddleware
from config import load_config
@@ -26,9 +27,10 @@ app.add_middleware(
app.include_router(payment.router, prefix="/api", tags=["payment"])
app.include_router(transaction_router, prefix="/api", tags=["transactions"])
@app.get("/")
def read_root():
return {"message": "Welcome to the HVAC Payment API"}
return {"message": "Welcome to the HVAC Payment API"}