mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
certs cleanup, first step filesystem mount
This commit is contained in:
11
src/app.py
11
src/app.py
@@ -18,12 +18,6 @@ pages['books']['books'] = books
|
||||
|
||||
app = flask.Flask(__name__)
|
||||
|
||||
### TMP
|
||||
@app.route('/certs')
|
||||
def certs():
|
||||
return flask.render_template("certs.html")
|
||||
###
|
||||
|
||||
@app.route('/api/goto/')
|
||||
@app.route('/api/goto/<location>')
|
||||
def goto(location='home'):
|
||||
@@ -107,6 +101,11 @@ def page404(e):
|
||||
def static_from_root():
|
||||
return flask.send_from_directory(app.static_folder, flask.request.path[1:])
|
||||
|
||||
@app.route('/files/<fname>')
|
||||
def filesystem_send(fname):
|
||||
print(app.static_folder + "files/")
|
||||
return flask.send_from_directory(app.static_folder + '/files/', fname)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# import sass
|
||||
|
||||
Reference in New Issue
Block a user