added namespaced api routes, controller