[notification] update API endpoint

This commit is contained in:
Kassian Sun 2023-04-02 15:27:51 +08:00
parent 8fddcdaf09
commit f9f60b23e7
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))
}