#!/usr/bin/python3 from flask import Flask, send_file app = Flask(__name__) static_node_port = 5001 @app.route('/img/') def img(name): return send_file(f'files/static/img/{name}') @app.route('/css/') def css(name): return send_file(f'files/static/css/{name}') @app.route('/fonts/') def fonts(name): return send_file(f'files/static/fonts/{name}') @app.route('/js/') 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)