Add notification ack api wrapper
This commit is contained in:
@@ -739,6 +739,15 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.ackNotification = function (notificationId, callback) {
|
||||
post('/api/v1/notifications/' + notificationId, {}, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 204) return callback(new ClientError(status));
|
||||
|
||||
callback(null);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getEventLogs = function (actions, search, page, perPage, callback) {
|
||||
var config = {
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user