From 709fdc6ce0184034dfe2df7c413772c19a4455f0 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 15 Mar 2017 14:53:25 -0700 Subject: updating examples with deleteable --- examples/createable/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/createable') diff --git a/examples/createable/README.md b/examples/createable/README.md index 44ba03c..72801f8 100644 --- a/examples/createable/README.md +++ b/examples/createable/README.md @@ -23,9 +23,9 @@ See the file `content/song.go` and read the comments to understand the various methods needed to satisfy required interfaces for this kind of activity. ### Overview -1. Implement `api.Createable` with the `Create(http.ResponseWriter, *http.Request)` method to allow outside POST requests -2. Implement `editor.Mergeable` with the `Approve(http.ResponseWriter, *http.Request)` method so you can control the Approval / Rejection of submitted content OR -3. Implement `api.Trustable` with the `AutoApprove(http.ResponseWriter, *http.Request)` method to bypass `Approve` and auto-approve and publish submitted content +1. Implement `api.Createable` with the `Create(http.ResponseWriter, *http.Request) error` method to allow outside POST requests +2. Implement `editor.Mergeable` with the `Approve(http.ResponseWriter, *http.Request) error` method so you can control the Approval / Rejection of submitted content OR +3. Implement `api.Trustable` with the `AutoApprove(http.ResponseWriter, *http.Request) error` method to bypass `Approve` and auto-approve and publish submitted content There are various validation and request checks shown in this example as well. Please feel free to modify and submit a PR for updates or bug fixes! \ No newline at end of file -- cgit v1.2.3