Rest: controller, routes and framework