mirror of
https://github.com/ivanch/tcc.git
synced 2025-08-25 07:11:50 +00:00
removing unneeded endpoints
This commit is contained in:
@@ -5,22 +5,6 @@ from flask import request, Response, Blueprint, jsonify, send_file
|
||||
image_blueprint = Blueprint('image_blueprint', __name__)
|
||||
image_service = ImageService()
|
||||
|
||||
@image_blueprint.route('/image/load-small-image', methods=['GET'])
|
||||
def get_simple_image():
|
||||
return send_file(io.BytesIO(image_service.get_simple_image()),
|
||||
mimetype='image/png',
|
||||
as_attachment=True,
|
||||
download_name='small-image.png')
|
||||
|
||||
|
||||
@image_blueprint.route('/image/load-big-image', methods=['GET'])
|
||||
def get_big_image():
|
||||
return send_file(io.BytesIO(image_service.get_big_image()),
|
||||
mimetype='image/png',
|
||||
as_attachment=True,
|
||||
download_name='big-image.png')
|
||||
|
||||
|
||||
@image_blueprint.route('/image/save-big-image', methods=['POST'])
|
||||
def save_image():
|
||||
image_service.save_image(request.get_data())
|
||||
|
Reference in New Issue
Block a user