adds new route handling

My bad, I commented that out while I was testing some stuff with Swagger.