I'm trying to serve 2 static files named index.html and main.js in flask. My code is as follows: 
from flask import Flask, url_for
app = Flask(__name__)
@app.route('/')
def host_html():
    return url_for('static', filename='index.html')
@app.route('/map.js')
def host_map():
    return url_for('static', filename='map.js')
if __name__ == '__main__':
    app.run()
The output however on the web page is /static/index.html. What am I missing? 
 
    