Coding Challenge
Explore how to enhance a Flask server by adding a /quantity route that returns the total number of users as JSON. This lesson guides you through modifying your Flask app to support seamless data retrieval for front-end use.
We'll cover the following...
We'll cover the following...
Problem statement
Currently our webserver.py is a Flask server that serves up user data on two routes, /user/<userid> and /users.
For this code challenge:
-
Add a Flask route ...