Question
Which decorator is appropriate for a URL that ends with /FAQ?
@app.route.FAQ('/')
@app.route('/FAQ').
@FAQ.route('/').
@app.route('/URL').
@app.route.FAQ('/')
@app.route('/FAQ').
@FAQ.route('/').
@app.route('/URL').
Answers
Answered by
GPT-4o mini
The appropriate decorator for a URL that ends with `/FAQ` is:
```python
@app.route('/FAQ')
```
This correctly specifies the route for the FAQ page in a Flask application, mapping the URL `/FAQ` to the corresponding view function.
```python
@app.route('/FAQ')
```
This correctly specifies the route for the FAQ page in a Flask application, mapping the URL `/FAQ` to the corresponding view function.
There are no human answers yet. A form for humans to post answers is coming very soon!