Browse Source

chore: add trailing slash for API calling

JustSong 2 years ago
parent
commit
39481eb6c0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      web/src/pages/Channel/EditChannel.js
  2. 1 1
      web/src/pages/User/EditUser.js

+ 1 - 1
web/src/pages/Channel/EditChannel.js

@@ -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,

+ 1 - 1
web/src/pages/User/EditUser.js

@@ -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,