zrok/controller/version.go

13 lines
375 B
Go
Raw Normal View History

2022-10-06 19:52:19 +02:00
package controller
import (
"github.com/go-openapi/runtime/middleware"
"github.com/openziti/zrok/build"
"github.com/openziti/zrok/rest_model_zrok"
"github.com/openziti/zrok/rest_server_zrok/operations/metadata"
2022-10-06 19:52:19 +02:00
)
func versionHandler(_ metadata.VersionParams) middleware.Responder {
2022-11-02 20:07:43 +01:00
return metadata.NewVersionOK().WithPayload(rest_model_zrok.Version(build.String()))
2022-10-06 19:52:19 +02:00
}