diff options
Diffstat (limited to 'tests/items.go')
-rw-r--r-- | tests/items.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/items.go b/tests/items.go deleted file mode 100644 index 6aae382..0000000 --- a/tests/items.go +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "net/url" - - "github.com/kid0m4n/sleepy" -) - -type Item struct { -} - -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) -} |