mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 16:54:23 +01:00
13 lines
375 B
Go
13 lines
375 B
Go
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"
|
|
)
|
|
|
|
func versionHandler(_ metadata.VersionParams) middleware.Responder {
|
|
return metadata.NewVersionOK().WithPayload(rest_model_zrok.Version(build.String()))
|
|
}
|