Moved api routes to namespace