diff options
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 26 |
1 files changed, 1 insertions, 25 deletions
@@ -5,36 +5,12 @@ import ( ) type Resource interface { - Get(p [string][]string) string + Get(map[string][]string) string Post(map[string][]string) string Put(map[string][]string) string Delete(map[string][]string) string } -type GetNotSupported struct{} - -func (GetNotSupported) Get(map[string][]string) string { - return "Nope." -} - -type PostNotSupported struct{} - -func (PostNotSupported) Post(map[string][]string) string { - return "Nope." -} - -type PutNotSupported struct{} - -func (PutNotSupported) Put(map[string][]string) string { - return "Nope." -} - -type DeleteNotSupported struct{} - -func (DeleteNotSupported) Delete(map[string][]string) string { - return "Nope." -} - type Route struct { resource Resource path string |