From 6a2322df31236f508c478ccda83b0cb866047c09 Mon Sep 17 00:00:00 2001 From: Nick Evans <2616208+nickevansuk@users.noreply.github.com> Date: Fri, 8 Sep 2023 15:15:25 +0100 Subject: [PATCH] fix: Remove old dataset directory (#9) --- website-reverse-proxy/index.js | 4 ---- website-reverse-proxy/wrangler.toml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/website-reverse-proxy/index.js b/website-reverse-proxy/index.js index 698d8e8..f188ba3 100644 --- a/website-reverse-proxy/index.js +++ b/website-reverse-proxy/index.js @@ -21,10 +21,6 @@ async function handleRequest(request) { || request.url === 'https://www.openactive.io/accessibility-support/accessibility-support.jsonld' || request.url === 'https://www.openactive.io/facility-types/facility-types.jsonld' || request.url === 'https://www.openactive.io/assets/openactive-logo-small.png' - // Reverse proxy for old status page (can be removed when status page updated) - || request.url === 'https://www.openactive.io/datasets/directory.json' - // Reverse proxy for validator example links that have been emailed (can be removed after time has passed) - || request.url.indexOf('https://www.openactive.io/data-models/versions') != -1 ) { request = new Request(request) let url = new URL(request.url) diff --git a/website-reverse-proxy/wrangler.toml b/website-reverse-proxy/wrangler.toml index 0520231..eb8451f 100644 --- a/website-reverse-proxy/wrangler.toml +++ b/website-reverse-proxy/wrangler.toml @@ -2,4 +2,4 @@ type = "javascript" name = "website-reverse-proxy" account_id = "729c76109998a58d9543b615f18832ff" zone_id = "036fdaca5aae1198de521c69944c1c65" -routes = ["https://www.openactive.io/activity-list/activity-list.jsonld", "https://www.openactive.io/accessibility-support/accessibility-support.jsonld", "https://www.openactive.io/facility-types/facility-types.jsonld", "https://www.openactive.io/assets/openactive-logo-small.png", "https://www.openactive.io/datasets/directory.json", "https://www.openactive.io/data-models/versions*"] +routes = ["https://www.openactive.io/activity-list/activity-list.jsonld", "https://www.openactive.io/accessibility-support/accessibility-support.jsonld", "https://www.openactive.io/facility-types/facility-types.jsonld", "https://www.openactive.io/assets/openactive-logo-small.png"]