Added frontend validation in the survey without backend
This commit is contained in:
parent
8ca90625b7
commit
6e9219fa7c
3 changed files with 51 additions and 10 deletions
|
@ -162,7 +162,7 @@ def register():
|
|||
return ret, 409
|
||||
|
||||
|
||||
@app.route('/umfrage', methods=['POST'])
|
||||
@app.route('/api/protected/umfrage', methods=['POST'])
|
||||
@flask_praetorian.auth_required
|
||||
def survey():
|
||||
req = flask.request.get_json(force=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue