moving to /internal for a js dir, icons.svg Ive built, etc. and added route in files.py, updates all html to use new path

This commit is contained in:
2021-08-15 00:26:27 +10:00
parent 50ca3098ae
commit 59c72f9aee
15 changed files with 462 additions and 55 deletions

View File

@@ -631,6 +631,15 @@ def checkrotatejob():
resp['finished']=True
return resp
################################################################################
# /include -> return contents on /include and does not need a login, so we
# can get the icon, and potentially any js, bootstrap, etc. needed for the login page
################################################################################
@app.route("/internal/<path:filename>")
def internal(filename):
print( filename )
return send_from_directory("internal/", filename)
################################################################################
# /static -> returns the contents of any file referenced inside /static.
# we create/use symlinks in static/ to reference the images to show