move the api into the src folder