cms/app-client/mirage/config.js
changeset 274 53a6985443f8
parent 261 02e2396bcbbc
child 278 f2c2c80a49f7
equal deleted inserted replaced
273:a719b2dcea34 274:53a6985443f8
    29         let id = decodeURIComponent(request.params.id);
    29         let id = decodeURIComponent(request.params.id);
    30         return transcripts.find(id).transcript;
    30         return transcripts.find(id).transcript;
    31     });
    31     });
    32 
    32 
    33     this.get('/languages');
    33     this.get('/languages');
       
    34 
       
    35     this.get('/geostats', function(db, request) {
       
    36         if(request.queryParams.areas) {
       
    37             return db.areas.find(request.queryParams.areas.split(','));
       
    38         } else {
       
    39             return []; 
       
    40         }
       
    41     });
    34 
    42 
    35     this.get('/themes');
    43     this.get('/themes');
    36 
    44 
    37     this.get('/discourses');
    45     this.get('/discourses');
    38 
    46