cms/app-client/app/mirage/config.js
changeset 160 c77f06ff3e54
parent 158 366509ae2f37
child 164 5f1e1cc17e8a
child 176 d1baf7ccecc8
--- a/cms/app-client/app/mirage/config.js	Sat May 07 15:15:01 2016 +0200
+++ b/cms/app-client/app/mirage/config.js	Sun May 08 14:21:22 2016 +0200
@@ -41,6 +41,14 @@
         return res;
     });
 
+    this.get('/discourses', function(db) {
+        var res = {};
+        _.each(db.discourses, function(discourse) {
+            res[discourse.id] = {'label': discourse.label, 'count': discourse.count};
+        });
+        return res;
+    });
+
     this.get('/lexvo/:ids', function(db, request) {
         var langIds = decodeURIComponent(request.params.ids);
         var resMap = _.reduce(langIds.split(','), function(res, id) {