mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-23 00:00:02 +01:00
14 lines
303 B
JavaScript
14 lines
303 B
JavaScript
export default function() {
|
|
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() {
|
|
|
|
}
|
|
*/
|