Minor fixes

parent 84b18ef5
......@@ -3,6 +3,6 @@ module git.kuschku.de/justjanne/bahn-proxy
go 1.12
require (
git.kuschku.de/justjanne/bahn-api v0.0.0-20190504113537-452e8eed7129
git.kuschku.de/justjanne/bahn-api v0.0.0-20190504114009-71c830fe0812
github.com/patrickmn/go-cache v2.1.0+incompatible
)
......@@ -219,7 +219,12 @@ func main() {
data[key] = combined
}
if err = returnJson(w, data); err != nil {
var result []InternalModel
for _, element := range data {
result = append(result, element)
}
if err = returnJson(w, result); err != nil {
log.Fatal(err)
return
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment