repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Merge branch 'hotfix/21.56.9' into master
[gitter.git]
/
server
/
api
/
v1
/
user
/
orgs.js
blob
52840523778f8ff5963463907d722be12069b127
1
'use strict';
2
3
var restful = require('../../../services/restful');
4
var StatusError = require('statuserror');
5
6
module.exports = {
7
id: 'org',
8
index: function(req) {
9
if (!req.user) throw new StatusError(403);
10
11
return restful.serializeOrgsForUser(req.user);
12
}
13
};