1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-23 00:00:02 +01:00
VILLASweb/app/mirage/config.js

15 lines
303 B
JavaScript
Raw Normal View History

export default function() {
2015-09-28 13:45:09 +02:00
this.get('/properties', function(db, request) {
return {
data: db.properties.map(attrs => ({ type: 'properties', id: attrs.id, attributes: attrs }))
}
});
}
/*
You can optionally export a config that is only loaded during tests
export function testConfig() {
}
*/