gophish/static/js/app/factories.js

40 lines
855 B
JavaScript
Raw Normal View History

app.factory('CampaignService', function($resource) {
return $resource('/api/campaigns/:id?api_key=' + user.api_key, {
id: "@id"
}, {
update: {
method: 'PUT'
}
});
});
app.factory('GroupService', function($resource) {
return $resource('/api/groups/:id?api_key=' + user.api_key, {
id: "@id"
}, {
update: {
method: 'PUT'
}
});
});
app.factory('TemplateService', function($resource) {
return $resource('/api/templates/:id?api_key=' + user.api_key, {
id: "@id"
}, {
update: {
method: 'PUT'
}
});
});
app.factory('LandingPageService', function($resource) {
return $resource('/api/pages/:id?api_key=' + user.api_key, {
id : "@id"
}, {
update: {
method: 'PUT'
}
});
});