create routes for namespace