mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
18 lines
301 B
Go
18 lines
301 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/formancehq/stack/libs/go-libs/api"
|
|
)
|
|
|
|
type ServiceInfo struct {
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
func (h *serverHandler) getInfo(info ServiceInfo) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
api.RawOk(w, info)
|
|
}
|
|
}
|