API now part of main application