graph(add annotation): initial backend implementation #1286

This commit is contained in:
Alexander Zobnin
2017-04-10 20:22:58 +03:00
parent 362860f687
commit d553498a33
5 changed files with 47 additions and 4 deletions
+1
View File
@@ -277,6 +277,7 @@ func (hs *HttpServer) registerRoutes() {
}, reqEditorRole)
r.Get("/annotations", wrap(GetAnnotations))
r.Post("/annotations", bind(dtos.PostAnnotationsCmd{}), wrap(PostAnnotation))
r.Post("/annotations/mass-delete", reqOrgAdmin, bind(dtos.DeleteAnnotationsCmd{}), wrap(DeleteAnnotations))
// error test