Add some more give_token.

I probably should just put it as a global pre-request hook.
This commit is contained in:
voussoir 2018-03-29 19:23:12 -07:00
parent d9f5765bcc
commit ac41598bb0

View file

@ -91,6 +91,7 @@ def get_tags_json(specific_tag_name=None):
@site.route('/tags/create_tag', methods=['POST'])
@decorators.catch_etiquette_exception
@session_manager.give_token
@decorators.required_fields(['tagname'], forbid_whitespace=True)
def post_tag_create():
'''
@ -104,6 +105,7 @@ def post_tag_create():
@site.route('/tags/delete_synonym', methods=['POST'])
@decorators.catch_etiquette_exception
@session_manager.give_token
@decorators.required_fields(['tagname'], forbid_whitespace=True)
def post_tag_delete_synonym():
'''
@ -124,6 +126,7 @@ def post_tag_delete_synonym():
@site.route('/tags/delete_tag', methods=['POST'])
@decorators.catch_etiquette_exception
@session_manager.give_token
@decorators.required_fields(['tagname'], forbid_whitespace=True)
def post_tag_delete():
'''