diff --git a/api/v2/acl_config.go b/api/v2/acl_config.go index 6bf804b2..6bf90478 100644 --- a/api/v2/acl_config.go +++ b/api/v2/acl_config.go @@ -7,6 +7,9 @@ var authenticationAllowlistMethods = map[string]bool{ "/memos.api.v2.AuthService/GetAuthStatus": true, "/memos.api.v2.UserService/GetUser": true, "/memos.api.v2.MemoService/ListMemos": true, + "/memos.api.v2.MemoService/ListMemoResources": true, + "/memos.api.v2.MemoService/ListMemoRelations": true, + "/memos.api.v2.MemoService/ListMemoComments": true, "/memos.api.v2.MarkdownService/ParseMarkdown": true, } diff --git a/web/src/helpers/api.ts b/web/src/helpers/api.ts index c4611168..9c65001f 100644 --- a/web/src/helpers/api.ts +++ b/web/src/helpers/api.ts @@ -48,14 +48,6 @@ export function getUserList() { return axios.get("/api/v1/user"); } -export function getUserById(id: number) { - return axios.get(`/api/v1/user/${id}`); -} - -export function upsertUserSetting(upsert: UserSettingUpsert) { - return axios.post(`/api/v1/user/setting`, upsert); -} - export function getMemoStats(username: string) { return axios.get(`/api/v1/memo/stats?creatorUsername=${username}`); }