Переглянути джерело

chore: add trailing slash for API calling

JustSong 2 роки тому
батько
коміт
39481eb6c0

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