reconfigure routes with api namespacing and appropriate nesting