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:
@@ -70,7 +70,9 @@ def generatePicture(pathToOrig, scaleX, scaleY, encoding, crop):
|
||||
return (newPath.replace(PICTURE_DIR, "", REPLACE_ONCE), False)
|
||||
|
||||
@app.route("/media/<path:path>")
|
||||
@app.route("/m/<path:path>")
|
||||
@app.route("/picture/<path:path>")
|
||||
@app.route("/pictures/<path:path>")
|
||||
@app.route("/image/<path:path>")
|
||||
@app.route("/images/<path:path>")
|
||||
def sendPicture(path):
|
||||
|
||||
Reference in New Issue
Block a user