add additional routes

This commit is contained in:
Yannik Schmidt
2021-06-30 16:09:12 +02:00
parent 41f6eb7560
commit befbbaca3b

View File

@@ -56,6 +56,9 @@ def generatePicture(pathToOrig, scaleX, scaleY, encoding):
return newPath.replace(PICTURE_DIR, "", REPLACE_ONCE) return newPath.replace(PICTURE_DIR, "", REPLACE_ONCE)
@app.route("/media/<path:path>") @app.route("/media/<path:path>")
@app.route("/picture/<path:path>")
@app.route("/image/<path:path>")
@app.route("/images/<path:path>")
def sendPicture(path): def sendPicture(path):
cache_timeout = 2592000 cache_timeout = 2592000