Skip to content

Commit 39481eb

Browse files
committed
chore: add trailing slash for API calling
1 parent 69153e7 commit 39481eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/pages/Channel/EditChannel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const EditChannel = () => {
6161

6262
const fetchGroups = async () => {
6363
try {
64-
let res = await API.get(`/api/group`);
64+
let res = await API.get(`/api/group/`);
6565
setGroupOptions(res.data.data.map((group) => ({
6666
key: group,
6767
text: group,

web/src/pages/User/EditUser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const EditUser = () => {
2525
};
2626
const fetchGroups = async () => {
2727
try {
28-
let res = await API.get(`/api/group`);
28+
let res = await API.get(`/api/group/`);
2929
setGroupOptions(res.data.data.map((group) => ({
3030
key: group,
3131
text: group,

0 commit comments

Comments
 (0)