2022-10-06 19:52:19 +02:00
|
|
|
package controller
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/go-openapi/runtime/middleware"
|
2022-11-02 20:07:43 +01:00
|
|
|
"github.com/openziti-test-kitchen/zrok/build"
|
|
|
|
"github.com/openziti-test-kitchen/zrok/rest_model_zrok"
|
2022-10-06 19:52:19 +02:00
|
|
|
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/metadata"
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
}
|