File size: 546 Bytes
e2bcf9c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22eb9af
 
 
 
 
e2bcf9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from fastapi import FastAPI , Request, APIRouter, Depends, HTTPException
from starlette.middleware.cors import CORSMiddleware
from routers import receipt_radar_callback_router

app = FastAPI()

app.add_middleware(
    CORSMiddleware,
    allow_origins=["*"],
    allow_credentials=True,
    allow_methods=["DELETE", "GET", "POST", "PUT"],
    allow_headers=["*"],
)

app = FastAPI()

@app.get("/test")
async def test():
    print("URL endpoint hit !!")
    return {"response":"URL HIT!!"}

app.include_router(receipt_radar_callback_router.router)