mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
17 lines
292 B
JavaScript
17 lines
292 B
JavaScript
|
import {getHeaders} from './header.js';
|
||
|
|
||
|
const formatStopReq = (ctx, stopRef) => {
|
||
|
const {profile} = ctx;
|
||
|
|
||
|
return {
|
||
|
endpoint: profile.stopEndpoint,
|
||
|
path: stopRef,
|
||
|
headers: getHeaders('application/x.db.vendo.mob.location.v3+json'),
|
||
|
method: 'get',
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export {
|
||
|
formatStopReq,
|
||
|
};
|