Rename URL /photo_cards -> /batch/photos/photo_card.
This commit is contained in:
parent
6ad41eb516
commit
ebe0fcee40
2 changed files with 3 additions and 3 deletions
|
@ -122,8 +122,8 @@ def post_photo_refresh_metadata(photo_id):
|
||||||
def get_clipboard_page():
|
def get_clipboard_page():
|
||||||
return flask.render_template('clipboard.html')
|
return flask.render_template('clipboard.html')
|
||||||
|
|
||||||
@site.route('/photo_cards', methods=['POST'])
|
@site.route('/batch/photos/photo_card', methods=['POST'])
|
||||||
def get_photo_cards():
|
def post_batch_photos_photo_cards():
|
||||||
photo_ids = request.form.get('photo_ids', None)
|
photo_ids = request.form.get('photo_ids', None)
|
||||||
if photo_ids is None:
|
if photo_ids is None:
|
||||||
return jsonify.make_json_response({})
|
return jsonify.make_json_response({})
|
||||||
|
|
|
@ -65,7 +65,7 @@ function request_more_divs()
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var url = "/photo_cards";
|
var url = "/batch/photos/photo_card";
|
||||||
var data = new FormData();
|
var data = new FormData();
|
||||||
var photo_ids = Array.from(needed).join(",");
|
var photo_ids = Array.from(needed).join(",");
|
||||||
data.append("photo_ids", photo_ids);
|
data.append("photo_ids", photo_ids);
|
||||||
|
|
Loading…
Reference in a new issue