redash/frontend/app/services/alert-subscription.js
2016-11-26 11:33:12 +02:00

9 lines
289 B
JavaScript

function AlertSubscription($resource) {
const resource = $resource('api/alerts/:alertId/subscriptions/:subscriberId', { alertId: '@alert_id', subscriberId: '@id' });
return resource;
}
export default function (ngModule) {
ngModule.factory('AlertSubscription', AlertSubscription);
}