From 7f8cfa2e7c8544a8f24c8809df24fa6b557194b0 Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Fri, 28 Mar 2025 20:29:11 +0100 Subject: [PATCH] Added Requests --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c64e5d0..a6b968b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,15 @@ -# api-worker +# api.jonasjones.dev 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 + +# Requests + +The following requests are implemented in the worker and are not redirected to the Rust API-Backend + +## GET /status + +Internally pings the backend and returns whether or not it is online