Moibe's picture
Welcome funciones standard
101ef6c
raw
history blame
367 Bytes
import globales
import funciones
from fastapi import FastAPI, Request, Header
app = FastAPI()
string_key = globales.llave
@app.get("/")
def start():
return {f"Status":"Deployed"}
@app.post("/webhook")
async def webhook_received(request: Request, stripe_signature: str = Header(None)):
return funciones.procesa_evento(request, stripe_signature)