Which of the following is a decorator for defining a route or endpoint that handles GET requests?

28. Which of the following is a decorator for defining a route or endpoint that handles GET requests?

  1. @app.getter()
  2. @app.get()
  3. @app.get_request()

Answer: B) @app.get()

Explanation:

@app.get() is a decorator for defining a route or endpoint that handles GET requests.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.