split api into separate app