瀏覽代碼

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

Torkel Ödegaard 8 年之前
父節點
當前提交
be29357d22
共有 1 個文件被更改,包括 1 次插入0 次删除
  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))