fleet/server/transport_appconfig.go
Victor Vrantchan 26b1e70ac3 App config api (#223)
Add GET and PATCH endpoints for /kolide/config to get/update current app configuration
2016-09-21 20:45:57 -04:00

17 lines
315 B
Go

package server
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
}