fleet/server/service/transport_appconfig.go

17 lines
316 B
Go
Raw Normal View History

2016-09-26 18:48:55 +00:00
package service
import (
"encoding/json"
"net/http"
"golang.org/x/net/context"
)
func decodeModifyAppConfigRequest(ctx context.Context, r *http.Request) (interface{}, error) {
var req modifyAppConfigRequest
if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
return nil, err
}
return req, nil
}