app module¶
- app.all()¶
This endpoint returns a list of the urls of all uploaded images/videos
Return type: json
- app.colorize(id)¶
This endpoint starts the colorizing process for the given image/video (specified by its folder name)
Return type: json
- app.delete(id)¶
This endpoint deletes the image/video (specified by its folder name)
Return type: json
- app.get_extension(filename)¶
- app.get_name(filename)¶
- app.handle_error(e)¶
- app.index()¶
This endpoint displays the main html file. Further functionality is provided via javascript.
Return type: html
- app.result(id)¶
This endpoint returns the urls of the given image/video (specified by its folder name) and of its colorized version.
Return type: json
- app.upload()¶
This endpoint accepts a single image/video and stores it in the folder specified in app.config[‘UPLOAD_FOLDER’]
Return type: json
- app.uploaded_file(fpath, filename)¶
This endpoint returns the image located at the given path
Return type: image
- app.valid_filename(filename)¶
Checks if the given filename is valid.