aboutsummaryrefslogtreecommitdiff
path: root/tests/items.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/items.go')
-rw-r--r--tests/items.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/items.go b/tests/items.go
index d39cae9..6aae382 100644
--- a/tests/items.go
+++ b/tests/items.go
@@ -2,13 +2,11 @@ package main
import (
"net/url"
- "sleepy"
+
+ "github.com/kid0m4n/sleepy"
)
type Item struct {
- sleepy.PostNotSupported
- sleepy.PutNotSupported
- sleepy.DeleteNotSupported
}
func (item Item) Get(values url.Values) (int, interface{}) {
@@ -19,11 +17,9 @@ func (item Item) Get(values url.Values) (int, interface{}) {
}
func main() {
-
item := new(Item)
var api = new(sleepy.Api)
api.AddResource(item, "/items")
api.Start(3000)
-
}
bgstack15