summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-09-15 15:59:29 -0400
committerChristopher Speller <crspeller@gmail.com>2015-09-15 15:59:29 -0400
commit1bbb5265be24476faa2d44f8538918708391bde8 (patch)
tree5f1b30ec8a4cf1dfa1366b7945accb502add43ba /web/react/utils/client.jsx
parentbbb0607e1ddf3e3d530095ba2aa28abd9c49a3e4 (diff)
parent23a1311ef5f9ecac0a250419a49e74b290e63516 (diff)
downloadchat-1bbb5265be24476faa2d44f8538918708391bde8.tar.gz
chat-1bbb5265be24476faa2d44f8538918708391bde8.tar.bz2
chat-1bbb5265be24476faa2d44f8538918708391bde8.zip
Merge pull request #681 from mattermost/PLT-12-log
PLT-12 Adding server logs viewer to admin console
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r--web/react/utils/client.jsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 51fd16474..75ffdb274 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -294,6 +294,20 @@ export function getAudits(userId, success, error) {
});
}
+export function getLogs(success, error) {
+ $.ajax({
+ url: '/api/v1/admin/logs',
+ dataType: 'json',
+ contentType: 'application/json',
+ type: 'GET',
+ success: success,
+ error: function onError(xhr, status, err) {
+ var e = handleError('getLogs', xhr, status, err);
+ error(e);
+ }
+ });
+}
+
export function getMeSynchronous(success, error) {
var currentUser = null;
$.ajax({