fleet/server/service/transport_osquery_options.go
Zachary Wasserman c5f0e5a6b4
Add endpoints for apply/get of each spec type (#1752)
- Osquery Options (to be renamed to Options after current Options removed)
- Labels
- Queries
- Packs
2018-05-03 18:01:57 -07:00

17 lines
315 B
Go

package service
import (
"context"
"encoding/json"
"net/http"
)
func decodeApplyOsqueryOptionsSpecRequest(ctx context.Context, r *http.Request) (interface{}, error) {
var req applyOsqueryOptionsSpecRequest
if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
return nil, err
}
return req, nil
}