Skip to content

Commit

Permalink
Merge pull request #482 from HSLdevcom/DT-6516
Browse files Browse the repository at this point in the history
DT-6516 Api link updates
  • Loading branch information
vesameskanen authored Nov 11, 2024
2 parents ae73bee + 74f9c90 commit 99dcdfb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion codegen.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema: https://api.digitransit.fi/routing/v2/routers/hsl/index/graphql
schema: https://api.digitransit.fi/routing/v2/hsl/gtfs/v1
documents: './src/queries/*.graphql'
generates:
./src/generated.ts:
Expand Down
4 changes: 2 additions & 2 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const apiSubscriptionParameter = process.env.API_SUBSCRIPTION_QUERY_PARAMETER_NA

const MAP_URL = process.env.MAP_URL
? process.env.MAP_URL
: 'https://cdn.digitransit.fi/map/v2';
: 'https://cdn.digitransit.fi/map/v3';

const __dirname = fileURLToPath(import.meta.url);
const port = process.env.PORT || 3001;
Expand All @@ -57,7 +57,7 @@ app.get('/api/monitor/:id', (req, res, next) => {
});

app.use('/api/graphql', (req, res, next) => {
const endpoint = req.headers['graphql-endpoint'] ?? 'routing/v2/routers/hsl/index/graphql';
const endpoint = req.headers['graphql-endpoint'] ?? 'routing/v2/hsl/gtfs/v1';
const url = `${baseurl}/${endpoint}?${apiSubscriptionParameter}`;
axiosPoolForApi({
headers: { 'content-type': 'application/json' },
Expand Down
2 changes: 1 addition & 1 deletion src/defaultConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
setName: 'digitransit',
},
name: 'default',
uri: 'routing/v1/routers/finland/index/graphql',
uri: 'routing/v2/finland/gtfs/v1',
showMinutes: '15',
alertOrientation: 'static', // Possible values are 'vertical', 'horizontal' and 'static'
login: {
Expand Down
14 changes: 7 additions & 7 deletions src/monitorConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
setName: 'default',
},
name: 'hsl',
uri: 'routing/v2/routers/hsl/index/graphql',
uri: 'routing/v2/hsl/gtfs/v1',
bannersUri: 'https://cms.hsl.fi/api/v1/banners?',
HSLUri:
// eslint-disable-next-line no-undef
Expand Down Expand Up @@ -75,7 +75,7 @@ export default {
setName: 'digitransit',
},
name: 'jyvaskyla',
uri: 'routing/v2/routers/waltti/index/graphql',
uri: 'routing/v2/waltti/gtfs/v1',
showMinutes: '15',
alertOrientation: 'static', // Possible values are 'vertical', 'horizontal' and 'static'
login: {
Expand All @@ -90,7 +90,7 @@ export default {
},
matka: {
name: 'matka',
uri: 'routing/v2/routers/finland/index/graphql',
uri: 'routing/v2/finland/gtfs/v1',
map: {
inUse: true,
},
Expand All @@ -116,7 +116,7 @@ export default {
primary: '#1c57cf',
monitorBackground: '#1c57cf',
},
feedIds: ['tampere', 'TampereVR', 'tampereDRT'],
feedIds: ['tampere', 'digitraffic', 'tampereDRT'],
fonts: {
externalFonts: [
'https://digitransit-prod-cdn-origin.azureedge.net/matka-fonts/roboto/roboto+montserrat.css',
Expand All @@ -138,7 +138,7 @@ export default {
setName: 'digitransit',
},
name: 'tampere',
uri: 'routing/v2/routers/waltti/index/graphql',
uri: 'routing/v2/waltti/gtfs/v1',
showMinutes: '20',
alertOrientation: 'horizontal', // Possible values are 'vertical', 'horizontal' and 'static'
login: {
Expand All @@ -152,7 +152,7 @@ export default {
},
},
vaasa: {
uri: 'routing/v2/routers/waltti/index/graphql',
uri: 'routing/v2/waltti/gtfs/v1',
name: 'vaasa',
login: {
inUse: true,
Expand Down Expand Up @@ -191,7 +191,7 @@ export default {
},
oulu: {
name: 'oulu',
uri: 'routing/v2/routers/waltti/index/graphql',
uri: 'routing/v2/waltti/gtfs/v1',
feedIds: ['OULU'],
colors: {
primary: '#E10669',
Expand Down

0 comments on commit 99dcdfb

Please sign in to comment.