Add an api controller