Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Renaming files
Browse files Browse the repository at this point in the history
  • Loading branch information
WJXHenry committed Apr 23, 2019
1 parent d8b959b commit 88ea1cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const uuid = require('uuid/v4')
*/
module.exports = async function(req, res) {
console.log('LRT Escalator & Elevator Outages Controller')
let key = 'lrt-escalator-outages' // Unique key for dataset storage
let key = 'lrt-escalator-elevator-outages' // Unique key for dataset storage
let url = 'https://data.edmonton.ca/resource/snws-u3zx.json' // The Socrata api endpoint
let queryBase = `${url}?$query=`

Expand Down
7 changes: 5 additions & 2 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const createAirQualityController = require('./controllers/aqhi-base')
const status = require('./controllers/status')
const test = require('./controllers/test-setup')
const airQualityStations = require('./controllers/air-quality-stations')
const lrtEscalatorOutages = require('./controllers/lrt-escalator-outages')
const lrtEscalatorElevatorOutages = require('./controllers/lrt-escalator-elevator-outages')

// Middleware
const logger = require('./middleware/logger')
Expand Down Expand Up @@ -73,7 +73,10 @@ let edmontonAirHealthIndex = createAirQualityController(req => {
}
})

router.post('/triggers/lrt_escalator_outages', lrtEscalatorOutages)
router.post(
'/triggers/lrt_escalator_elevator_outages',
lrtEscalatorElevatorOutages
)

router.post('/triggers/light_the_bridge', lightTheBridge)

Expand Down

0 comments on commit 88ea1cb

Please sign in to comment.