Moibe's picture
Threebug
b43e2e7
raw
history blame
466 Bytes
import globales
import funciones
from fastapi import FastAPI, Request, Header
import time
app = FastAPI()
print("Cree fatapi...")
time.sleep(16)
string_key = globales.llave
print ("Obtuve string key...")
time.sleep(15)
@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)