mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: get user by username api (#2034)
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user