Closes issue: OwlBoard/backend#39
Still awaiting the check auth endpoint, the code only acts on a 401 response. That means that it currently will not detect if an account is expired.
This commit is contained in:
@@ -1,44 +1,43 @@
|
||||
export const tocs = new Map<string, string>([
|
||||
[ 'gw', 'Great Western Railway' ],
|
||||
[ 'sw', 'South Western Railway' ],
|
||||
[ 'id', 'Island Line' ],
|
||||
[ 'nt', 'Northern' ],
|
||||
[ 'aw', 'Transport for Wales' ],
|
||||
[ 'cc', 'c2c' ],
|
||||
[ 'cs', 'Caledonian Sleeper' ],
|
||||
[ 'ch', 'Chiltern Railways' ],
|
||||
[ 'xc', 'CrossCountry' ],
|
||||
[ 'em', 'East Midlands Railway' ],
|
||||
[ 'es', 'Eurostar' ],
|
||||
[ 'ht', 'Hull Trains' ],
|
||||
[ 'tl', 'Thameslink' ],
|
||||
[ 'gc', 'Grand Central' ],
|
||||
[ 'gx', 'Gatwick Express' ],
|
||||
[ 'hx', 'Heathrow Express' ],
|
||||
[ 'ls', 'Locomotive Services Limited' ],
|
||||
[ 'me', 'Merseyrail' ],
|
||||
[ 'lr', 'Network Rail OTM' ],
|
||||
[ 'xr', 'TfL Elizabeth Line' ],
|
||||
[ 'se', 'Southeastern' ],
|
||||
[ 'sn', 'Southern' ],
|
||||
[ 'le', 'Greater Anglia' ],
|
||||
[ 'ga', 'Greater Anglia' ],
|
||||
[ 'lm', 'West Midlands Railway' ],
|
||||
[ 'sr', 'ScotRail' ],
|
||||
[ 'gn', 'Great Northern' ],
|
||||
[ 'lt', 'TfL London Underground' ],
|
||||
[ 'lo', 'TfL London Overground' ],
|
||||
[ 'sj', 'Sheffield SuperTram' ],
|
||||
[ 'tp', 'TransPennine Express' ],
|
||||
[ 'vt', 'Avanti West Coast' ],
|
||||
[ 'gr', 'LNER' ],
|
||||
[ 'wr', 'West Coast Railway' ],
|
||||
[ 'ty', 'Vintage Trains' ],
|
||||
[ 'ld', 'Lumo' ],
|
||||
[ 'so', 'Rail Adventure' ],
|
||||
[ 'ln', 'Grand Union Trains' ],
|
||||
[ 'zz', 'Freight/Charter Company' ],
|
||||
[ 'wm', 'West Midlands Railway (WMT)' ],
|
||||
[ 'uk', 'Unknown Operator' ]
|
||||
]
|
||||
)
|
||||
['gw', 'Great Western Railway'],
|
||||
['sw', 'South Western Railway'],
|
||||
['id', 'Island Line'],
|
||||
['nt', 'Northern'],
|
||||
['aw', 'Transport for Wales'],
|
||||
['cc', 'c2c'],
|
||||
['cs', 'Caledonian Sleeper'],
|
||||
['ch', 'Chiltern Railways'],
|
||||
['xc', 'CrossCountry'],
|
||||
['em', 'East Midlands Railway'],
|
||||
['es', 'Eurostar'],
|
||||
['ht', 'Hull Trains'],
|
||||
['tl', 'Thameslink'],
|
||||
['gc', 'Grand Central'],
|
||||
['gx', 'Gatwick Express'],
|
||||
['hx', 'Heathrow Express'],
|
||||
['ls', 'Locomotive Services Limited'],
|
||||
['me', 'Merseyrail'],
|
||||
['lr', 'Network Rail OTM'],
|
||||
['xr', 'TfL Elizabeth Line'],
|
||||
['se', 'Southeastern'],
|
||||
['sn', 'Southern'],
|
||||
['le', 'Greater Anglia'],
|
||||
['ga', 'Greater Anglia'],
|
||||
['lm', 'West Midlands Railway'],
|
||||
['sr', 'ScotRail'],
|
||||
['gn', 'Great Northern'],
|
||||
['lt', 'TfL London Underground'],
|
||||
['lo', 'TfL London Overground'],
|
||||
['sj', 'Sheffield SuperTram'],
|
||||
['tp', 'TransPennine Express'],
|
||||
['vt', 'Avanti West Coast'],
|
||||
['gr', 'LNER'],
|
||||
['wr', 'West Coast Railway'],
|
||||
['ty', 'Vintage Trains'],
|
||||
['ld', 'Lumo'],
|
||||
['so', 'Rail Adventure'],
|
||||
['ln', 'Grand Union Trains'],
|
||||
['zz', 'Freight/Charter Company'],
|
||||
['wm', 'West Midlands Railway (WMT)'],
|
||||
['uk', 'Unknown Operator']
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user