mirror of
https://github.com/FAUSheppy/python-flask-picture-factory
synced 2025-12-06 07:01:37 +01:00
add additional routes
This commit is contained in:
@@ -56,6 +56,9 @@ def generatePicture(pathToOrig, scaleX, scaleY, encoding):
|
||||
return newPath.replace(PICTURE_DIR, "", REPLACE_ONCE)
|
||||
|
||||
@app.route("/media/<path:path>")
|
||||
@app.route("/picture/<path:path>")
|
||||
@app.route("/image/<path:path>")
|
||||
@app.route("/images/<path:path>")
|
||||
def sendPicture(path):
|
||||
cache_timeout = 2592000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user