Update to support multiple routes

This is to adhere to error handling in flask>=0.10