cms/app-client/mirage/config.js
changeset 278 f2c2c80a49f7
parent 274 53a6985443f8
child 304 20071981ba2a
equal deleted inserted replaced
274:53a6985443f8 278:f2c2c80a49f7
    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 
    34 
    35     this.get('/geostats', function(db, request) {
    35     this.get('/geostats');
    36         if(request.queryParams.areas) {
       
    37             return db.areas.find(request.queryParams.areas.split(','));
       
    38         } else {
       
    39             return []; 
       
    40         }
       
    41     });
       
    42 
    36 
    43     this.get('/themes');
    37     this.get('/themes');
    44 
    38 
    45     this.get('/discourses');
    39     this.get('/discourses');
    46 
    40