diff options
Diffstat (limited to 'tests/items.go')
-rw-r--r-- | tests/items.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/items.go b/tests/items.go deleted file mode 100644 index 978b052..0000000 --- a/tests/items.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "net/url" - "sleepy" -) - -type Item struct { - sleepy.BaseResource -} - -func (item Item) Get(values url.Values) (int, interface{}) { - items := []string{"item1", "item2"} - data := map[string][]string{"items": items} - - return 200, data -} - -func main() { - - item := new(Item) - - var api = new(sleepy.Api) - api.AddResource(item, "/items") - api.Start(3000) - -} |