Merge branch 'hotfix/21.56.9' into master
[gitter.git] / server / serializers / rest / gitlab-project-strategy.js
blobc8db1b20abfc2192aa34251ff16299112277f3fe
1 'use strict';
3 const debug = require('debug')('gitter:infra:serializer:gitlab-project');
5 function GitlabProjectStrategy(/*options*/) {
6 this.preload = function(/*projects*/) {};
8 this.map = function(item) {
9 debug('map', item);
10 return {
11 type: 'GL_PROJECT',
12 id: item.id,
13 name: item.name,
14 description: item.description,
15 absoluteUri: item.absoluteUri,
16 uri: item.uri,
17 private: item.private,
18 avatar_url: item.avatar_url
23 GitlabProjectStrategy.prototype = {
24 name: 'GitlabProjectStrategy'
27 module.exports = GitlabProjectStrategy;