moved templates down a level
added an api route to get the routes from the back end