Skip to content

Commit

Permalink
Revert "Add routingMode query parameter to /journeys route"
Browse files Browse the repository at this point in the history
This reverts commit bfdd427.
  • Loading branch information
derhuerst authored Jan 21, 2025
1 parent 9dd2573 commit 9a42263
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
9 changes: 0 additions & 9 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import {parseBoolean, parseInteger} from 'hafas-rest-api/lib/parse.js'
import {loyaltyCardParser} from './lib/loyalty-cards.js'
import {route as stations} from './routes/stations.js'
import {route as station} from './routes/station.js'
import {parseRoutingMode} from './lib/parse.js'
import {routingModes} from 'hafas-client/p/db/routing-modes.js'

const pkg = require('./package.json')

Expand Down Expand Up @@ -105,13 +103,6 @@ const mapRouteParsers = (route, parsers) => {
defaultStr: '*adult*',
parse: parseInteger
},
routingMode: {
description: 'HAFAS routing mode, see [Routing Mode](#routing-mode)',
type: 'string',
enum: Object.keys(routingModes),
defaultStr: '\`REALTIME\`',
parse: parseRoutingMode
},
}
}

Expand Down
12 changes: 0 additions & 12 deletions lib/parse.js

This file was deleted.

0 comments on commit 9a42263

Please sign in to comment.