Merge pull request '[notification] update API endpoint' (#48) from feature/notifications into master

LGTM
This commit is contained in:
liaosy 2023-04-02 15:29:27 +08:00
commit 7106aaeeda
1 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,6 @@ type NotificationAPI struct {
func InitAPI() {
notification := NotificationAPI{}
api.HandleAPIMethod(api.GET, "/notification", notification.RequireLogin(notification.listNotifications))
api.HandleAPIMethod(api.GET, "/notification/_search", notification.RequireLogin(notification.listNotifications))
api.HandleAPIMethod(api.POST, "/notification/read", notification.RequireLogin(notification.setNotificationsRead))
}