Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d406db9d18 | |||
| 07e5e4023c | |||
| cf0b1396ea | |||
| 39ca73b015 | |||
| f38ba5a971 | |||
| 379180df7d | |||
| 7ae9951fda |
20
src/hooks.server.ts
Normal file
20
src/hooks.server.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { type HandleFetch } from "@sveltejs/kit";
|
||||
|
||||
export const handleFetch: HandleFetch = async ({ request, fetch }) => {
|
||||
if (request.url.startsWith('https://maps.owlboard.info')) {
|
||||
const newUrl = request.url.replace('https://maps.owlboard.info', 'http://localhost:3000');
|
||||
|
||||
const headers = new Headers(request.headers);
|
||||
headers.set('host', 'maps.owlboard.info');
|
||||
|
||||
request = new Request(newUrl, {
|
||||
method: request.method,
|
||||
headers: headers,
|
||||
body: request.body,
|
||||
// @ts-ignore - 'duplex' is needed for node fetch with bodies
|
||||
duplex: 'half'
|
||||
});
|
||||
}
|
||||
|
||||
return fetch(request);
|
||||
}
|
||||
@@ -117,8 +117,8 @@ routeDetail:
|
||||
chains: 73
|
||||
|
||||
- type: junction
|
||||
name: Kensal Green South Junction
|
||||
diverges: right
|
||||
name: Kensal Green East Junction
|
||||
diverges: both
|
||||
direction: down
|
||||
description: to Crossrail & North Pole Depots
|
||||
miles: 2
|
||||
@@ -141,11 +141,16 @@ routeDetail:
|
||||
- type: junction
|
||||
name: Old Oak Common East
|
||||
diverges: left
|
||||
direction: up
|
||||
direction: down
|
||||
description: to Crossrail Depot
|
||||
miles: 2
|
||||
chains: 62
|
||||
|
||||
- type: siteof
|
||||
name: Old Oak Common HS2 interchange
|
||||
miles: 3
|
||||
chains: 0
|
||||
|
||||
- type: junction
|
||||
name: Old Oak Common West
|
||||
diverges: left
|
||||
@@ -450,6 +455,11 @@ routeDetail:
|
||||
miles: 10
|
||||
chains: 32
|
||||
|
||||
- type: crossovers
|
||||
name: Hayes East
|
||||
miles: 10
|
||||
chains: 45
|
||||
|
||||
- type: bridge
|
||||
position: under
|
||||
category: waterway
|
||||
@@ -500,7 +510,7 @@ routeDetail:
|
||||
chains: 22
|
||||
|
||||
- type: crossovers
|
||||
name: West Drayton East
|
||||
name: West Drayton East Junction
|
||||
miles: 12
|
||||
chains: 67
|
||||
|
||||
@@ -529,6 +539,7 @@ routeDetail:
|
||||
diverges: left
|
||||
direction: down
|
||||
description: Colnbrook Freight (near Heathrow)
|
||||
elecBranch: none
|
||||
miles: 13
|
||||
chains: 31
|
||||
|
||||
@@ -1027,6 +1038,7 @@ routeDetail:
|
||||
chains: 1
|
||||
|
||||
- type: junction
|
||||
name: Henley Branch Junction
|
||||
diverges: left
|
||||
direction: down
|
||||
description: Henley-on-Thames from Platform 4 only
|
||||
@@ -1162,6 +1174,7 @@ routeDetail:
|
||||
name: Reading New Junction
|
||||
diverges: right
|
||||
direction: up
|
||||
elecBranch: none
|
||||
description: to Southern Lines (Waterloo/Guildford)
|
||||
miles: 35
|
||||
chains: 40
|
||||
@@ -1177,6 +1190,7 @@ routeDetail:
|
||||
name: Reading East Junction
|
||||
diverges: left
|
||||
direction: up
|
||||
elecBranch: none
|
||||
description: to Southern Lines (Waterloo/Guildford)
|
||||
miles: 35
|
||||
chains: 61
|
||||
|
||||
Reference in New Issue
Block a user