Along with the API's. I also want to host some static
files which will provide more information about the API's exposed. How
to accomplish that?
Since it is a subclass of Flask. I tried:
@app.route('/')
def index():
return render_template('index.html')
It returned a 404.
application = DispatcherMiddleware(eve_app, { '/static': static_app })
I don't know specifically why that wouldn't work, but a better approach is probably to put any non-REST stuff in a separate Flask app. You can then use wekzeug DispatcherMiddleware to direct requests to both, based on the url or a subdomain.application = DispatcherMiddleware(eve_app, { '/static': static_app })
--
You received this message because you are subscribed to the Google Groups "Eve REST API Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-eve+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
