18 lines
362 B
Go
18 lines
362 B
Go
package handler
|
|
|
|
import (
|
|
"mstore/app/operator"
|
|
"mstore/app/router"
|
|
)
|
|
|
|
// GET /v2/ 200 404/401
|
|
func (hand *Handler) GetVersion(rctx *router.Context) {
|
|
params := &operator.GetVersionParams{}
|
|
ctx := rctx.GetContext()
|
|
_, code, err := hand.oper.GetVersion(ctx, params)
|
|
if err != nil {
|
|
hand.logg.Errorf("GetVersion error: %v", err)
|
|
}
|
|
rctx.SetStatus(code)
|
|
}
|