# Day 19 Warm-up ## Conceptual In our ToDo App, where do the following run? (These might be trick questions) 1. `/public/todo.js` 2. `/routes/todo.mjs` 3. `/package.json` ## Programming Add an additional `/random` router to our ToDo App. There should be two endpoints: 1. `/randrange`: return a JSON object containing a random integer or some sort of error message. There are two possible query parameters: * `start`: the starting value of the range (default: 0) * `end`: the ending value (exclusive) of the range (required) 2. `/random`: return a JSON object containing a random float in the range 0-1.0 (excluding 1.0). Modify our existing code so that you can reuse the `randrange` function. Think carefully about where this code should be moved. Any changes you make should maintain exisiting functionality. Time permitting, also add a `/math` router that supports: * `add` * `subtract` * `multiply` * `divide` Each should support two arguments. Return the answer as part of a JSON object or provide an error condition if there is a problem.