ソースを参照

chore: add trailing slash for API calling

JustSong 2 年 前
コミット
39481eb6c0
2 ファイル変更2 行追加2 行削除
  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 () => {
   const fetchGroups = async () => {
     try {
     try {
-      let res = await API.get(`/api/group`);
+      let res = await API.get(`/api/group/`);
       setGroupOptions(res.data.data.map((group) => ({
       setGroupOptions(res.data.data.map((group) => ({
         key: group,
         key: group,
         text: group,
         text: group,

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

@@ -25,7 +25,7 @@ const EditUser = () => {
   };
   };
   const fetchGroups = async () => {
   const fetchGroups = async () => {
     try {
     try {
-      let res = await API.get(`/api/group`);
+      let res = await API.get(`/api/group/`);
       setGroupOptions(res.data.data.map((group) => ({
       setGroupOptions(res.data.data.map((group) => ({
         key: group,
         key: group,
         text: group,
         text: group,