mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-15 23:43:22 +00:00
chore: add trailing slash for API calling
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user