MCPcopy
hub / github.com/pocketbase/pocketbase / logsView

Function logsView

apis/logs.go:61–73  ·  view source on GitHub ↗
(e *core.RequestEvent)

Source from the content-addressed store, hash-verified

59}
60
61func logsView(e *core.RequestEvent) error {
62 id := e.Request.PathValue("id")
63 if id == "" {
64 return e.NotFoundError("", nil)
65 }
66
67 log, err := e.App.FindLogById(id)
68 if err != nil || log == nil {
69 return e.NotFoundError("", err)
70 }
71
72 return e.JSON(http.StatusOK, log)
73}

Callers

nothing calls this directly

Calls 3

NotFoundErrorMethod · 0.80
JSONMethod · 0.80
FindLogByIdMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…