The best approach would be the / api prefix for all REST APIs. This can be done by adding URL_PREFIX="api" in settings.py.
Performing this when there is a request in /, Eve (Flask) does not return the resource directory, but returns the page as specified in run.py.
To serve static content, add route attributes to run.py, respectively.
@app.route('/') def index(): return app.send_static_file('index.html') app.run(host="0.0.0.0", debug=True)
source share