application rest controller and routes