Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // join team by id
  2. this.get("#/join/:id", function (context) {
  3. let teamId = context.params.id.substr(1);
  4.  
  5. teamsService.joinTeam(teamId)
  6. .then(function (userInfo) {
  7. auth.saveSession(userInfo);
  8. auth.showInfo("Joined team!")
  9. displayCatalog(context);
  10. }).catch(auth.handleError)
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement