send json body in get request 1

send json body in get request

// please don't. use query or route params instead.

Here is what the above code is Doing:
1. We’re importing the Flask class from the flask module. An instance of this class will be our WSGI application.
2. We’re creating a Flask instance and storing it in app.
3. We then use the route() decorator to tell Flask what URL should trigger our function.
4. The function is given a name which is also used to generate URLs for that particular function, and returns the message we want to display in the user’s browser.

Similar Posts