datarhei-dragonfork-core/http/handler/null.go

13 lines
203 B
Go
Raw Permalink Normal View History

2022-05-13 13:26:45 -04:00
package handler
import (
"net/http"
"github.com/labstack/echo/v4"
)
// Null is a handler that always returns NoContent
func Null(c echo.Context) error {
return c.String(http.StatusNoContent, "")
}