diff options
author | Doug Black <dblack@twilio.com> | 2014-01-26 13:42:50 -0800 |
---|---|---|
committer | Doug Black <dblack@twilio.com> | 2014-01-26 13:42:50 -0800 |
commit | 5a10edcd157f6a1d16dea18f137ae6f5a87d5001 (patch) | |
tree | 39e26745572f62c9a406038281b16879fa76834b /http.go | |
parent | fix signature (diff) | |
download | sleepy-5a10edcd157f6a1d16dea18f137ae6f5a87d5001.tar.gz sleepy-5a10edcd157f6a1d16dea18f137ae6f5a87d5001.tar.bz2 sleepy-5a10edcd157f6a1d16dea18f137ae6f5a87d5001.zip |
fixes from issues
Diffstat (limited to 'http.go')
-rw-r--r-- | http.go | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -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, "" } |