hafas-rest-api
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "hafas-rest-api", | ||
"description": "Expose a HAFAS client via an HTTP REST API.", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -53,4 +53,4 @@ 'use strict' | ||
hafas.journeys(from, to, opt) | ||
.then((res) => { | ||
res.json(res) | ||
.then((data) => { | ||
res.json(data) | ||
next() | ||
@@ -57,0 +57,0 @@ }) |
21372