From 3db9932e7ac9457bf4d354af521e0c43240adb6a Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Wed, 13 Dec 2023 04:16:10 +0100 Subject: [PATCH] added this right branch --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c64e5d0 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# api-worker +API worker for cloudflare + +This is the worker adapter for the backend. It allows for control over the primary traffic to the api backend as well as the error fallback implementations. + +# Redirect +Any request from `https://api.jonasjones.dev/` will be redirected to `https://someapi.jonasjones.dev/` and the response will be returned if the backend is up. Otherwhise an error message is returned