hafas-client -> db-hafas
This commit is contained in:
parent
ad72ee9a80
commit
19cf762fc9
2 changed files with 3 additions and 5 deletions
6
index.js
6
index.js
|
@ -1,7 +1,6 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const hafas = require('hafas-client')
|
const hafas = require('db-hafas')
|
||||||
const dbProfile = require('hafas-client/p/db')
|
|
||||||
const createApi = require('hafas-rest-api')
|
const createApi = require('hafas-rest-api')
|
||||||
const createLogging = require('hafas-rest-api/logging')
|
const createLogging = require('hafas-rest-api/logging')
|
||||||
const hsts = require('hsts')
|
const hsts = require('hsts')
|
||||||
|
@ -17,8 +16,7 @@ const config = {
|
||||||
homepage: pkg.homepage
|
homepage: pkg.homepage
|
||||||
}
|
}
|
||||||
|
|
||||||
const client = hafas(dbProfile)
|
const api = createApi(hafas, config)
|
||||||
const api = createApi(client, config)
|
|
||||||
|
|
||||||
api.use(createLogging())
|
api.use(createLogging())
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cli-native": "^1.0.0",
|
"cli-native": "^1.0.0",
|
||||||
|
"db-hafas": "^2.0.0-alpha.2",
|
||||||
"db-stations": "^1.24.0",
|
"db-stations": "^1.24.0",
|
||||||
"db-stations-autocomplete": "^1.0.0",
|
"db-stations-autocomplete": "^1.0.0",
|
||||||
"hafas-client": "^2.0.0-alpha.3",
|
|
||||||
"hafas-rest-api": "0.1.0-alpha.2",
|
"hafas-rest-api": "0.1.0-alpha.2",
|
||||||
"hsts": "^2.1.0",
|
"hsts": "^2.1.0",
|
||||||
"ndjson": "^1.5.0",
|
"ndjson": "^1.5.0",
|
||||||
|
|
Loading…
Reference in a new issue