add self linking to apiserver

This commit is contained in:
Daniel Smith
2014-09-25 17:20:28 -07:00
parent b972f72248
commit 37e505601e
11 changed files with 186 additions and 68 deletions

View File

@@ -161,7 +161,7 @@ func TestProxy(t *testing.T) {
}
handler := Handle(map[string]RESTStorage{
"foo": simpleStorage,
}, codec, "/prefix/version")
}, codec, "/prefix/version", selfLinker)
server := httptest.NewServer(handler)
req, err := http.NewRequest(