Moibe's picture
Todas las funciones listas
c51594b
raw
history blame
406 Bytes
from fastapi import FastAPI
import funciones
app = FastAPI()
@app.get("/")
def hello():
return {"Status":"Deployed"}
@app.get("/getTokens/{userfile}")
def getTokens(userfile: str):
tokens = funciones.getAccess(userfile)
return tokens
@app.get("/debitTokens/{userfile}/{work}")
def debitTokens(userfile: str, work: str):
tokens = funciones.debitTokens(userfile,work)
return tokens