from flask import Flask, request, send_from_directory
app = Flask(__name__, static_url_path='')

@app.route('/js/<path:path>')
def send_js(path):
    return send_from_directory('js', path)
if __name__ == '__main__':
    app.run()
How to serve static files in Flask