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(): | ||||
|     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({}) | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue