summaryrefslogtreecommitdiffstats
path: root/src/services/ChatService.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/ChatService.js')
-rw-r--r--src/services/ChatService.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/services/ChatService.js b/src/services/ChatService.js
index 08deba2..d077e9b 100644
--- a/src/services/ChatService.js
+++ b/src/services/ChatService.js
@@ -13,7 +13,7 @@ export default {
13 } 13 }
14 }) 14 })
15 .catch(error => error_notify(error)) 15 .catch(error => error_notify(error))
16 }, 16 },
17 17
18 async get_all_user_groups() { 18 async get_all_user_groups() {
19 return await axios 19 return await axios
@@ -25,5 +25,17 @@ export default {
25 } 25 }
26 }) 26 })
27 .catch(error => error_notify(error)) 27 .catch(error => error_notify(error))
28 },
29
30 async get_group_messages(group_pk) {
31 return await axios
32 .get(url+`groups/detail/${group_pk}/messages/`)
33 .then(res => {
34 return {
35 status: res.status,
36 data: res.data
37 }
38 })
39 .catch(error => error_notify(error))
28 } 40 }
29} 41}