all tests passing, seperated out routes for api