feat: add system service (#2083)

* feat: add system service

* chore: update
This commit is contained in:
boojack
2023-08-05 21:30:23 +08:00
committed by GitHub
parent 270a529948
commit 238f896907
25 changed files with 940 additions and 71 deletions

View File

@@ -28,8 +28,9 @@ const (
)
var authenticationAllowlistMethods = map[string]bool{
"/memos.api.v2.UserService/GetUser": true,
"/memos.api.v2.MemoService/ListMemos": true,
"/memos.api.v2.SystemService/GetSystemInfo": true,
"/memos.api.v2.UserService/GetUser": true,
"/memos.api.v2.MemoService/ListMemos": true,
}
// IsAuthenticationAllowed returns whether the method is exempted from authentication.