redash/client/app/services/destination.js
2016-11-26 11:35:21 +02:00

15 lines
387 B
JavaScript

function Destination($resource) {
const actions = {
get: { method: 'GET', cache: false, isArray: false },
query: { method: 'GET', cache: false, isArray: true },
};
const DestinationResource = $resource('api/destinations/:id', { id: '@id' }, actions);
return DestinationResource;
}
export default function (ngModule) {
ngModule.factory('Destination', Destination);
}