Files
hatchet/api/v1/server/handlers/info/version.go
T
Sean Reilly 9e961ac196 Feature add version info (#1154)
* adding a /version endpoint for the engine and a /api/v1/version endpoint for the API

* make the security optional so we don't get redirected for having auth

* lint

* upgrade protoc to the latest available version on brew

* use useQuery and clean up html
2025-01-06 10:50:04 -08:00

14 lines
332 B
Go

package info
import (
"github.com/labstack/echo/v4"
"github.com/hatchet-dev/hatchet/api/v1/server/oas/gen"
)
func (i *InfoService) InfoGetVersion(ctx echo.Context, req gen.InfoGetVersionRequestObject) (gen.InfoGetVersionResponseObject, error) {
return gen.InfoGetVersion200JSONResponse{
Version: i.config.Version,
}, nil
}