diff --git a/frontends/etiquette_flask/etiquette_flask/endpoints/photo_endpoints.py b/frontends/etiquette_flask/etiquette_flask/endpoints/photo_endpoints.py index 0f5f54b..83be423 100644 --- a/frontends/etiquette_flask/etiquette_flask/endpoints/photo_endpoints.py +++ b/frontends/etiquette_flask/etiquette_flask/endpoints/photo_endpoints.py @@ -122,8 +122,8 @@ def post_photo_refresh_metadata(photo_id): def get_clipboard_page(): return flask.render_template('clipboard.html') -@site.route('/photo_cards', methods=['POST']) -def get_photo_cards(): +@site.route('/batch/photos/photo_card', methods=['POST']) +def post_batch_photos_photo_cards(): photo_ids = request.form.get('photo_ids', None) if photo_ids is None: return jsonify.make_json_response({}) diff --git a/frontends/etiquette_flask/templates/clipboard.html b/frontends/etiquette_flask/templates/clipboard.html index 1007f9a..2873cca 100644 --- a/frontends/etiquette_flask/templates/clipboard.html +++ b/frontends/etiquette_flask/templates/clipboard.html @@ -65,7 +65,7 @@ function request_more_divs() { return; } - var url = "/photo_cards"; + var url = "/batch/photos/photo_card"; var data = new FormData(); var photo_ids = Array.from(needed).join(","); data.append("photo_ids", photo_ids);