mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 18:03:54 +00:00
15 lines
387 B
JavaScript
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);
|
|
}
|