splitted one operator module to file, account, image operators; splitted operator functions; etc
This commit is contained in:
@@ -12,13 +12,13 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"mstore/app/operator"
|
||||
"mstore/app/imageoper"
|
||||
"mstore/app/router"
|
||||
)
|
||||
|
||||
// GET /v2/ 200 404/401
|
||||
func (hand *Handler) GetVersion(rctx *router.Context) {
|
||||
params := &operator.GetVersionParams{}
|
||||
params := &imageoper.GetVersionParams{}
|
||||
|
||||
//hand.DumpHeaders("GetVersion", rctx)
|
||||
authorization := rctx.GetHeader("Authorization")
|
||||
@@ -28,7 +28,7 @@ func (hand *Handler) GetVersion(rctx *router.Context) {
|
||||
return
|
||||
}
|
||||
ctx := rctx.GetContext()
|
||||
_, code, err := hand.oper.GetVersion(ctx, params)
|
||||
_, code, err := hand.imop.GetVersion(ctx, params)
|
||||
if err != nil {
|
||||
hand.logg.Errorf("GetVersion error: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user