From fa6ae714b648b46fdb0e0c950029af24e1bce51b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 19 Nov 2019 19:24:57 +0100 Subject: [PATCH] fix readme usage & changelog --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8507ec9..ba6312a 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ func main() { server.Checkers.Add( builtin.NewFloat64() ); // 3. bind your implementations - server.HandleFunc(http.MethodGet, func(req api.Request, res *api.Response){ + server.HandleFunc(http.MethodGet, "/path", func(req api.Request, res *api.Response){ // ... process stuff ... res.SetError(api.ErrorSuccess()); }) @@ -210,6 +210,6 @@ In this example we want 3 arguments : - [ ] `[a:b]` - map containing **only** keys of type `a` and values of type `b` (*a or b can be ommited*) - [x] generic controllers implementation (shared objects) - [x] response interface -- [ ] log bound resources when building the aicra server +- [x] log bound resources when building the aicra server - [ ] fail on check for unimplemented resources at server boot. - [ ] fail on check for unavailable types in api.json at server boot.