Add dynamic handler management #13

Merged
xdrm-brackets merged 12 commits from feature/dynamic-handler-signature into 0.3.0 2020-03-29 15:10:06 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 8a0a20294c - Show all commits

View File

@ -95,7 +95,12 @@ func (server httpServer) ServeHTTP(res http.ResponseWriter, req *http.Request) {
response := api.EmptyResponse().WithError(apiErr) response := api.EmptyResponse().WithError(apiErr)
for key, value := range returned { for key, value := range returned {
response.SetData(name, value) // find original name from rename
for name, param := range service.Output {
if param.Rename == key {
response.SetData(name, value)
}
}
} }
// 11. apply headers // 11. apply headers