Check api key for swipe
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
Madis Mägi 2023-08-18 03:55:50 +03:00
parent dc34c66c6e
commit 9c329e31be

View File

@ -10,6 +10,7 @@ from wtforms.validators import DataRequired
import pytz
import const
from api import check_api_key
from common import spam, User
from oidc import login_required, read_user
@ -300,6 +301,7 @@ class FormSwipe(FlaskForm):
timestamp = DateTimeField('timestamp')
@page_doorboy.route("/m/doorboy/swipe", methods=["POST"])
@check_api_key
def view_swipe():
form = request.json
print(form)