blob: ab1e6c2132ac2c907f8f21cc20b7975ab19ed7b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import axios from "axios";
import error_notify from './NotifyErrorService.js'
const url = 'http://localhost:8000/api/chat/'
export default {
async group_create(data) {
return await axios
.post(url+'groups/', data)
.then(res => {
return {
status: res.status
}
})
.catch(error => error_notify(error))
}
}
|