Backend: Point to new CORPUS URL

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-02-02 20:00:55 +00:00
parent 75eabc4c2c
commit faeeddac35

View File

@ -29,7 +29,7 @@ async function get() {
async function fetch() { async function fetch() {
log.out("corpus.fetch: Fetching CORPUS Data from Network Rail") log.out("corpus.fetch: Fetching CORPUS Data from Network Rail")
authHead = Buffer.from(`${corpusUser}:${corpusPass}`).toString('base64') authHead = Buffer.from(`${corpusUser}:${corpusPass}`).toString('base64')
const url = 'https://datafeeds.networkrail.co.uk/ntrod/SupportingFileAuthenticate?type=CORPUS' const url = 'https://publicdatafeeds.networkrail.co.uk/ntrod/SupportingFileAuthenticate?type=CORPUS'
const options = { const options = {
method: 'get', method: 'get',
timeout: 20000, timeout: 20000,