Splitting api and app