1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-09 02:59:19 +00:00

Subcontext and mapping updates

This commit is contained in:
Darren Shepherd
2017-11-21 13:46:30 -07:00
parent 3ba704aef1
commit 38c9c5c6c3
78 changed files with 1694 additions and 996 deletions

20
api/handler/delete.go Normal file
View File

@@ -0,0 +1,20 @@
package handler
import (
"net/http"
"github.com/rancher/norman/types"
)
func DeleteHandler(request *types.APIContext) error {
store := request.Schema.Store
if store != nil {
err := store.Delete(request, request.Schema, request.ID)
if err != nil {
return err
}
}
request.WriteResponse(http.StatusOK, nil)
return nil
}