EVE - define custom flask controllers [closed] EVE - define custom flask controllers [closed] flask flask

EVE - define custom flask controllers [closed]


Ok I will answer my own question. After reading more about Eve, you can use any of Flask's methods because Eve is simply inheriting from the Flask class. For example, you can do this:

from eve import Eveapp = Eve()@app.route("/x")def hello():    return "Hello World!"if __name__ == '__main__':    app.run(debug=True)

There's more info at the Flask documentation site here: Flask