diff --git a/docs/readme.md b/docs/readme.md index 673a6cf..b664e81 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -18,7 +18,7 @@ This API returns realtime data whenever its upstream, the [API for DB's mobile a ### No API Key -You can just use the API without authentication. There's a [rate limit](https://apisyouwonthate.com/blog/what-is-api-rate-limiting-all-about) of 100 requests/minute (burst 200 requests/minute) set up. +You can just use the API without authentication. There's a [rate limit](https://apisyouwonthate.com/blog/what-is-api-rate-limiting-all-about) of 100 requests/minute (burst 150 requests/minute) set up. ### CORS diff --git a/index.js b/index.js index 37c336f..f5bfd59 100644 --- a/index.js +++ b/index.js @@ -8,6 +8,6 @@ api.listen(config.port, (err) => { logger.error(err) process.exit(1) } else { - logger.info(`Listening on ${config.hostname}:${config.port}.`) + logger.info(`listening on ${config.port} (${config.hostname}).`) } }) diff --git a/license.md b/license.md index 731fad6..3c8a627 100644 --- a/license.md +++ b/license.md @@ -1,4 +1,4 @@ -Copyright (c) 2021, Jannis R +Copyright (c) 2022, Jannis R Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. diff --git a/package.json b/package.json index 15581b2..ded86c6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "db-rest", "description": "A clean REST API wrapping around the Deutsche Bahn API.", - "version": "5.0.1", + "version": "5.0.2", "main": "index.js", "author": "Jannis R ", "homepage": "https://github.com/derhuerst/db-rest/tree/5", diff --git a/routes/stations.js b/routes/stations.js index 5934980..3f79bf5 100644 --- a/routes/stations.js +++ b/routes/stations.js @@ -10,6 +10,8 @@ let pAllStations = require('../lib/db-stations') const JSON_MIME = 'application/json' const NDJSON_MIME = 'application/x-ndjson' +// todo: DRY with vbb-rest/routes/stations.js? + const toNdjsonBuf = (data) => { const chunks = [] let i = 0, bytes = 0