Test

@app.route(‘/user/<username>’)
def profile(username):
return f’Hello, {username}!’

@app.route(‘/about’) def about(): return ‘This is the about page.’

Example:

 
@app.route('/about')
def about():
return 'This is the about page.'

 

Here, the route decorator @app.route('/about') maps the “/about” URL to the about function, which returns information about the website.