hooked up express routes to api end points