fix: get user by username api (#2034)

This commit is contained in:
boojack
2023-07-26 22:41:21 +08:00
committed by GitHub
parent 56c321aeaa
commit d8d6de9fca
10 changed files with 21 additions and 43 deletions

View File

@ -57,7 +57,7 @@ export function getUserList() {
}
export function getUserByUsername(username: string) {
return axios.get<User>(`/api/v1/user/${username}`);
return axios.get<User>(`/api/v1/user/name/${username}`);
}
export function upsertUserSetting(upsert: UserSettingUpsert) {