new routes for notifiers

This commit is contained in:
Hayden 2023-03-05 11:06:30 -09:00
parent d79d0b45bf
commit 882f86f6f4
No known key found for this signature in database
GPG key ID: 17CF79474E257545
8 changed files with 741 additions and 5 deletions

View file

@ -21,7 +21,7 @@ func (ctrl *V1Controller) routeID(r *http.Request) (uuid.UUID, error) {
func (ctrl *V1Controller) routeUUID(r *http.Request, key string) (uuid.UUID, error) {
ID, err := uuid.Parse(chi.URLParam(r, key))
if err != nil {
return uuid.Nil, validate.NewInvalidRouteKeyError(key)
return uuid.Nil, validate.NewRouteKeyError(key)
}
return ID, nil
}