Restructured routing and structure of REST controllers