fix: add markdown service to acl
This commit is contained in:
parent
db0eff4743
commit
770607f93f
1 changed files with 5 additions and 4 deletions
|
|
@ -7,6 +7,7 @@ var authenticationAllowlistMethods = map[string]bool{
|
||||||
"/memos.api.v2.AuthService/GetAuthStatus": true,
|
"/memos.api.v2.AuthService/GetAuthStatus": true,
|
||||||
"/memos.api.v2.UserService/GetUser": true,
|
"/memos.api.v2.UserService/GetUser": true,
|
||||||
"/memos.api.v2.MemoService/ListMemos": true,
|
"/memos.api.v2.MemoService/ListMemos": true,
|
||||||
|
"/memos.api.v2.MarkdownService/ParseMarkdown": true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// isUnauthorizeAllowedMethod returns whether the method is exempted from authentication.
|
// isUnauthorizeAllowedMethod returns whether the method is exempted from authentication.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue