mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
16 lines
292 B
JavaScript
16 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,
|
|
};
|