Check api key for swipe
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
parent
dc34c66c6e
commit
9c329e31be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user