mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: support open api with webhooks
This commit is contained in:
@ -87,7 +87,7 @@ namespace api {
|
||||
});
|
||||
}
|
||||
|
||||
export function updateUserinfo(userinfo: Partial<{ username: string; password: string; githubName: string }>) {
|
||||
export function updateUserinfo(userinfo: Partial<{ username: string; password: string }>) {
|
||||
return request({
|
||||
method: "PATCH",
|
||||
url: "/api/user/me",
|
||||
@ -95,6 +95,13 @@ namespace api {
|
||||
});
|
||||
}
|
||||
|
||||
export function resetOpenId() {
|
||||
return request<string>({
|
||||
method: "POST",
|
||||
url: "/api/user/open_id/new",
|
||||
});
|
||||
}
|
||||
|
||||
export function getMyMemos() {
|
||||
return request<Model.Memo[]>({
|
||||
method: "GET",
|
||||
|
Reference in New Issue
Block a user