Separated team api into separate file