mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
CFL, Irish Rail: transformReqBody -> defaultLanguage
This commit is contained in:
parent
492cb7dfbc
commit
4aa5f1de85
2 changed files with 2 additions and 12 deletions
|
@ -3,16 +3,11 @@
|
|||
const baseProfile = require('./base.json')
|
||||
const products = require('./products')
|
||||
|
||||
const transformReqBody = (ctx, body) => {
|
||||
body.lang = 'de'
|
||||
return body
|
||||
}
|
||||
|
||||
const cflProfile = {
|
||||
...baseProfile,
|
||||
locale: 'de-LU',
|
||||
timezone: 'Europe/Luxembourg',
|
||||
transformReqBody,
|
||||
defaultLanguage: 'de',
|
||||
|
||||
products: products,
|
||||
|
||||
|
|
|
@ -3,16 +3,11 @@
|
|||
const baseProfile = require('./base.json')
|
||||
const products = require('./products')
|
||||
|
||||
const transformReqBody = (ctx, body) => {
|
||||
body.lang = 'ga'
|
||||
return body
|
||||
}
|
||||
|
||||
const irishRailProfile = {
|
||||
...baseProfile,
|
||||
locale: 'en-IE',
|
||||
timezone: 'Europe/Dublin',
|
||||
transformReqBody,
|
||||
defaultLanguage: 'ga',
|
||||
salt: Buffer.from('i5s7m3q9z6b4k1c2', 'utf8'),
|
||||
addMicMac: true,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue