Remove unnecessary methods=GET.
This commit is contained in:
parent
0d6faa8f6e
commit
59cd922a53
2 changed files with 4 additions and 4 deletions
|
@ -15,14 +15,14 @@ session_manager = common.session_manager
|
||||||
|
|
||||||
# Individual photos ################################################################################
|
# Individual photos ################################################################################
|
||||||
|
|
||||||
@site.route('/photo/<photo_id>', methods=['GET'])
|
@site.route('/photo/<photo_id>')
|
||||||
@session_manager.give_token
|
@session_manager.give_token
|
||||||
def get_photo_html(photo_id):
|
def get_photo_html(photo_id):
|
||||||
photo = common.P_photo(photo_id, response_type='html')
|
photo = common.P_photo(photo_id, response_type='html')
|
||||||
session = session_manager.get(request)
|
session = session_manager.get(request)
|
||||||
return flask.render_template('photo.html', photo=photo, session=session)
|
return flask.render_template('photo.html', photo=photo, session=session)
|
||||||
|
|
||||||
@site.route('/photo/<photo_id>.json', methods=['GET'])
|
@site.route('/photo/<photo_id>.json')
|
||||||
@session_manager.give_token
|
@session_manager.give_token
|
||||||
def get_photo_json(photo_id):
|
def get_photo_json(photo_id):
|
||||||
photo = common.P_photo(photo_id, response_type='json')
|
photo = common.P_photo(photo_id, response_type='json')
|
||||||
|
|
|
@ -13,14 +13,14 @@ session_manager = common.session_manager
|
||||||
|
|
||||||
# Individual users #################################################################################
|
# Individual users #################################################################################
|
||||||
|
|
||||||
@site.route('/user/<username>', methods=['GET'])
|
@site.route('/user/<username>')
|
||||||
@session_manager.give_token
|
@session_manager.give_token
|
||||||
def get_user_html(username):
|
def get_user_html(username):
|
||||||
user = common.P_user(username, response_type='html')
|
user = common.P_user(username, response_type='html')
|
||||||
session = session_manager.get(request)
|
session = session_manager.get(request)
|
||||||
return flask.render_template('user.html', user=user, session=session)
|
return flask.render_template('user.html', user=user, session=session)
|
||||||
|
|
||||||
@site.route('/user/<username>.json', methods=['GET'])
|
@site.route('/user/<username>.json')
|
||||||
@session_manager.give_token
|
@session_manager.give_token
|
||||||
def get_user_json(username):
|
def get_user_json(username):
|
||||||
user = common.P_user(username, response_type='json')
|
user = common.P_user(username, response_type='json')
|
||||||
|
|
Loading…
Reference in a new issue