Browse Source

fix: added missing url route for annotation state history delete, fixes #8660

Torkel Ödegaard 8 năm trước cách đây
mục cha
commit
be29357d22
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      pkg/api/api.go

+ 1 - 0
pkg/api/api.go

@@ -285,6 +285,7 @@ func (hs *HttpServer) registerRoutes() {
 		}, reqEditorRole)
 
 		r.Get("/annotations", wrap(GetAnnotations))
+		r.Post("/annotations/mass-delete", reqOrgAdmin, bind(dtos.DeleteAnnotationsCmd{}), wrap(DeleteAnnotations))
 
 		r.Group("/annotations", func() {
 			r.Post("/", bind(dtos.PostAnnotationsCmd{}), wrap(PostAnnotation))