adding api controller