Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / server / serializers / rest / gitlab-group-strategy.js
blob61da3d0cef74a9e060da416b69c81b3468c17ba3
1 'use strict';
3 const debug = require('debug')('gitter:infra:serializer:gitlab-group');
5 function GitlabGroupStrategy(/*options*/) {
6 this.preload = function(/*groups*/) {};
8 this.map = function(item) {
9 debug('map', item);
10 return {
11 type: 'GL_GROUP',
12 id: item.id,
13 name: item.name,
14 avatar_url: item.avatar_url,
15 uri: item.uri,
16 absoluteUri: item.absoluteUri
21 GitlabGroupStrategy.prototype = {
22 name: 'GitlabGroupStrategy'
25 module.exports = GitlabGroupStrategy;