(e *core.RequestEvent)
| 59 | } |
| 60 | |
| 61 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…