This commit is contained in:
Aevann1 2022-01-11 23:53:49 +02:00
parent 832f89af9c
commit 99b0a8ca17
6 changed files with 40 additions and 37 deletions

View file

@ -1,6 +1,7 @@
from flask import *
from os import environ
import requests
from files.helpers.wrappers import *
from files.__main__ import app
@ -9,7 +10,8 @@ GIPHY_KEY = environ.get('GIPHY_KEY').rstrip()
@app.get("/giphy")
@app.get("/giphy<path>")
def giphy(path=None):
@auth_desired
def giphy(v=None, path=None):
searchTerm = request.values.get("searchTerm", "").strip()
limit = int(request.values.get("limit", 48))