chore: add trailing slash for API calling
This commit is contained in:
parent
69153e7231
commit
39481eb6c0
@ -61,7 +61,7 @@ const EditChannel = () => {
|
||||
|
||||
const fetchGroups = async () => {
|
||||
try {
|
||||
let res = await API.get(`/api/group`);
|
||||
let res = await API.get(`/api/group/`);
|
||||
setGroupOptions(res.data.data.map((group) => ({
|
||||
key: group,
|
||||
text: group,
|
||||
|
@ -25,7 +25,7 @@ const EditUser = () => {
|
||||
};
|
||||
const fetchGroups = async () => {
|
||||
try {
|
||||
let res = await API.get(`/api/group`);
|
||||
let res = await API.get(`/api/group/`);
|
||||
setGroupOptions(res.data.data.map((group) => ({
|
||||
key: group,
|
||||
text: group,
|
||||
|
Loading…
Reference in New Issue
Block a user