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'
|
||||
|
||||
const hafas = require('hafas-client')
|
||||
const dbProfile = require('hafas-client/p/db')
|
||||
const hafas = require('db-hafas')
|
||||
const createApi = require('hafas-rest-api')
|
||||
const createLogging = require('hafas-rest-api/logging')
|
||||
const hsts = require('hsts')
|
||||
|
@ -17,8 +16,7 @@ const config = {
|
|||
homepage: pkg.homepage
|
||||
}
|
||||
|
||||
const client = hafas(dbProfile)
|
||||
const api = createApi(client, config)
|
||||
const api = createApi(hafas, config)
|
||||
|
||||
api.use(createLogging())
|
||||
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"cli-native": "^1.0.0",
|
||||
"db-hafas": "^2.0.0-alpha.2",
|
||||
"db-stations": "^1.24.0",
|
||||
"db-stations-autocomplete": "^1.0.0",
|
||||
"hafas-client": "^2.0.0-alpha.3",
|
||||
"hafas-rest-api": "0.1.0-alpha.2",
|
||||
"hsts": "^2.1.0",
|
||||
"ndjson": "^1.5.0",
|
||||
|
|
Loading…
Reference in a new issue