diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-03-15 11:01:28 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-03-15 11:01:28 -0700 |
commit | 07fe1b15899fa6439e587984d6183371f9a6877c (patch) | |
tree | f1191c86ce03fbc36ea03539e9fbd27d143ec72d /system/api/handlers.go | |
parent | 0eaddb8ae0b29937f7514cc83c63e0aa3c377850 (diff) |
changing API for external client interaction. Externalable -> Createable, +Deleteable, changing Hookable interface methods to conform to pattern: BeforeAPI$ACTION, etc.
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r-- | system/api/handlers.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go index 4a9eaff..83bbe43 100644 --- a/system/api/handlers.go +++ b/system/api/handlers.go @@ -2,6 +2,7 @@ package api import ( "encoding/json" + "errors" "log" "net/http" "strconv" @@ -11,6 +12,9 @@ import ( "github.com/ponzu-cms/ponzu/system/item" ) +// ErrNoAuth should be used to report failed auth requests +var ErrNoAuth = errors.New("Auth failed for request") + // deprecating from API, but going to provide code here in case someone wants it func typesHandler(res http.ResponseWriter, req *http.Request) { var types = []string{} |