()
| 1499 | } |
| 1500 | |
| 1501 | func (h *handler) handleGetRevTree() error { |
| 1502 | h.assertAdminOnly() |
| 1503 | docid := h.PathVar("docid") |
| 1504 | doc, err := h.collection.GetDocument(h.ctx(), docid, db.DocUnmarshalAll) |
| 1505 | |
| 1506 | if doc != nil { |
| 1507 | h.writeText([]byte(doc.History.RenderGraphvizDot())) |
| 1508 | base.Audit(h.ctx(), base.AuditIDDocumentMetadataRead, base.AuditFields{base.AuditFieldDocID: docid}) |
| 1509 | } |
| 1510 | return err |
| 1511 | } |
| 1512 | |
| 1513 | func (h *handler) handleGetLogging() error { |
| 1514 | base.WarnfCtx(h.ctx(), "Using deprecated /_logging endpoint. Use /_config endpoints instead.") |
nothing calls this directly
no test coverage detected