Flask — Redirection

This is a quick note on how we can perform url redirection on flask.

Here it is seen that endpoint ‘’ is redirected with status 302.

Now try out commenting the function “home” and add “@app.route(‘/’)” on top of get_store function.

We’ll still be able to get list of stores. So, that is just a way of calling a function with many endpoints.