Adding API controller