mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-05 09:09:25 -05:00
9e961ac196
* 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
14 lines
332 B
Go
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
|
|
}
|