aboutsummaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorDoug Black <dblack@twilio.com>2014-01-26 13:42:50 -0800
committerDoug Black <dblack@twilio.com>2014-01-26 13:42:50 -0800
commit5a10edcd157f6a1d16dea18f137ae6f5a87d5001 (patch)
tree39e26745572f62c9a406038281b16879fa76834b /http.go
parentfix signature (diff)
downloadsleepy-5a10edcd157f6a1d16dea18f137ae6f5a87d5001.tar.gz
sleepy-5a10edcd157f6a1d16dea18f137ae6f5a87d5001.tar.bz2
sleepy-5a10edcd157f6a1d16dea18f137ae6f5a87d5001.zip
fixes from issues
Diffstat (limited to 'http.go')
-rw-r--r--http.go15
1 files changed, 5 insertions, 10 deletions
diff --git a/http.go b/http.go
index 7b79aca..8efe657 100644
--- a/http.go
+++ b/http.go
@@ -4,25 +4,20 @@ import (
"net/url"
)
-type (
- GetNotSupported struct{}
- PostNotSupported struct{}
- PutNotSupported struct{}
- DeleteNotSupported struct{}
-)
+type BaseResource struct{}
-func (GetNotSupported) Get(values url.Values) (int, interface{}) {
+func (BaseResource) Get(values url.Values) (int, interface{}) {
return 405, ""
}
-func (PostNotSupported) Post(values url.Values) (int, interface{}) {
+func (BaseResource) Post(values url.Values) (int, interface{}) {
return 405, ""
}
-func (PutNotSupported) Put(values url.Values) (int, interface{}) {
+func (BaseResource) Put(values url.Values) (int, interface{}) {
return 405, ""
}
-func (DeleteNotSupported) Delete(values url.Values) (int, interface{}) {
+func (BaseResource) Delete(values url.Values) (int, interface{}) {
return 405, ""
}
bgstack15