This commit is contained in:
Jori Lallo
2016-04-28 22:25:37 -07:00
parent 2f9233222d
commit cce82b3d43
79 changed files with 1495 additions and 496 deletions

16
server/presenters.js Normal file
View File

@ -0,0 +1,16 @@
export function presentUser(user) {
return {
id: user.id,
name: user.name,
username: user.username,
email: user.email,
avatarUrl: user.slackData.profile.image_192,
};
}
export function presentTeam(team) {
return {
id: team.id,
name: team.name,
};
}