fix: add markdown service to acl

This commit is contained in:
Steven 2023-12-17 11:37:38 +08:00
parent db0eff4743
commit 770607f93f

View File

@ -3,10 +3,11 @@ package v2
import "strings"
var authenticationAllowlistMethods = map[string]bool{
"/memos.api.v2.SystemService/GetSystemInfo": true,
"/memos.api.v2.AuthService/GetAuthStatus": true,
"/memos.api.v2.UserService/GetUser": true,
"/memos.api.v2.MemoService/ListMemos": true,
"/memos.api.v2.SystemService/GetSystemInfo": true,
"/memos.api.v2.AuthService/GetAuthStatus": true,
"/memos.api.v2.UserService/GetUser": true,
"/memos.api.v2.MemoService/ListMemos": true,
"/memos.api.v2.MarkdownService/ParseMarkdown": true,
}
// isUnauthorizeAllowedMethod returns whether the method is exempted from authentication.