Move /notifications onto r0/v3 mux

This commit is contained in:
Neil Alexander 2022-02-21 15:06:43 +00:00
parent a57ce77c14
commit 26f20d5139
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -1001,7 +1001,7 @@ func Setup(
}), }),
).Methods(http.MethodPost, http.MethodOptions) ).Methods(http.MethodPost, http.MethodOptions)
unstableMux.Handle("/notifications", v3mux.Handle("/notifications",
httputil.MakeAuthAPI("get_notifications", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse { httputil.MakeAuthAPI("get_notifications", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse {
return GetNotifications(req, device, userAPI) return GetNotifications(req, device, userAPI)
}), }),