Add api controller and base so app and api can share functionality