Declarative Management hand-off (#882)

This commit is contained in:
Jesse Peterson
2023-05-02 08:54:04 -07:00
committed by GitHub
parent 4d0df77cbd
commit 1f01f70dba
10 changed files with 330 additions and 110 deletions

View File

@@ -30,8 +30,8 @@ func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.S
options...,
))
// POST /v1/commands/udid Add new MDM Command with raw plist to device queue.
r.Methods("POST").Path("/v1/commands/{udid}").Handler(httptransport.NewServer(
// POST,PUT /v1/commands/udid Add new MDM Command with raw plist to device queue.
r.Methods("POST", "PUT").Path("/v1/commands/{udid}").Handler(httptransport.NewServer(
e.NewRawCommandEndpoint,
decodeNewRawCommandRequest,
httputil.EncodeJSONResponse,