diff --git a/routes/util.go b/routes/util.go index d6270ce..bca6269 100644 --- a/routes/util.go +++ b/routes/util.go @@ -28,16 +28,6 @@ func SendError(ctx *gin.Context, status int, err error) { ctx.Abort() } -// StatusResponse should give the caller feedback on the state of the task they submitted -type StatusResponse struct { - Ok bool -} - -// SendOk sends a basic "OK" response -func SendOk(ctx *gin.Context) { - ctx.JSON(http.StatusOK, StatusResponse{Ok: true}) -} - func HandleDBError(ctx *gin.Context, logCtx context.Context, err error) { log.Ctx(logCtx).Warn().Err(err).Msg("db error occurred") status := http.StatusBadRequest