diff options
author | Steve <nilslice@gmail.com> | 2017-03-15 13:55:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-15 13:55:55 -0700 |
commit | 1a62c2bfe3cec71391e51f0c59b6c008179b7e89 (patch) | |
tree | 18a1a89076303acf3d2be40aa4ca371ed27ede3a /system/api/handlers.go | |
parent | 0eaddb8ae0b29937f7514cc83c63e0aa3c377850 (diff) | |
parent | 5ec811b5d1899cfe538ed6d19c8a5ee01a553f03 (diff) |
Merge pull request #99 from ponzu-cms/ponzu-dev
[core] Add api.Deleteable interface, rename Externalable to Createable and rename methods
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{} |