adding angular api controller