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 pytz
|
||||||
import const
|
import const
|
||||||
|
from api import check_api_key
|
||||||
from common import spam, User
|
from common import spam, User
|
||||||
from oidc import login_required, read_user
|
from oidc import login_required, read_user
|
||||||
|
|
||||||
@ -300,6 +301,7 @@ class FormSwipe(FlaskForm):
|
|||||||
timestamp = DateTimeField('timestamp')
|
timestamp = DateTimeField('timestamp')
|
||||||
|
|
||||||
@page_doorboy.route("/m/doorboy/swipe", methods=["POST"])
|
@page_doorboy.route("/m/doorboy/swipe", methods=["POST"])
|
||||||
|
@check_api_key
|
||||||
def view_swipe():
|
def view_swipe():
|
||||||
form = request.json
|
form = request.json
|
||||||
print(form)
|
print(form)
|
||||||
|
Loading…
Reference in New Issue
Block a user