|
|
|
@ -15,11 +15,13 @@ var authenticationAllowlistMethods = map[string]bool{
|
|
|
|
|
"/memos.api.v1.UserService/GetUserAvatarBinary": true,
|
|
|
|
|
"/memos.api.v1.UserService/SearchUsers": true,
|
|
|
|
|
"/memos.api.v1.MemoService/GetMemo": true,
|
|
|
|
|
"/memos.api.v1.MemoService/GetMemoByUid": true,
|
|
|
|
|
"/memos.api.v1.MemoService/ListMemos": true,
|
|
|
|
|
"/memos.api.v1.MemoService/ListMemoTags": true,
|
|
|
|
|
"/memos.api.v1.MemoService/SearchMemos": true,
|
|
|
|
|
"/memos.api.v1.MarkdownService/GetLinkMetadata": true,
|
|
|
|
|
"/memos.api.v1.ResourceService/GetResourceBinary": true,
|
|
|
|
|
"/memos.api.v1.ResourceService/GetResourceByUid": true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// isUnauthorizeAllowedMethod returns whether the method is exempted from authentication.
|
|
|
|
|