This commit is contained in:
2026-08-26 11:01:46 +03:00
parent 34a798d345
commit 4bd1512994
712 changed files with 538122 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/python3
from flask import Flask, send_file
app = Flask(__name__)
static_node_port = 5001
@app.route('/img/<name>')
def img(name):
return send_file(f'files/static/img/{name}')
@app.route('/css/<name>')
def css(name):
return send_file(f'files/static/css/{name}')
@app.route('/fonts/<name>')
def fonts(name):
return send_file(f'files/static/fonts/{name}')
@app.route('/js/<name>')
def js(name):
return send_file(f'files/static/js/{name}')
if __name__ == '__main__':
app.run(host="0.0.0.0", port=static_node_port)