In Flask, you can create routes using the @app.route() decorator.
For example, if you wanted to create a route for the root URL (i.e. http://localhost:5000/), you could do so with the following code:
@app.route(‘/’)
def index():
return ‘Hello, World!’