API worker for cloudflare
Find a file
2025-03-28 20:29:11 +01:00
src added analytics tracking 2024-08-18 05:40:02 +02:00
.editorconfig Initial commit (by create-cloudflare CLI) 2023-09-14 18:58:13 +02:00
.gitignore added analytics tracking 2024-08-18 05:40:02 +02:00
.prettierrc Initial commit (by create-cloudflare CLI) 2023-09-14 18:58:13 +02:00
package-lock.json Updated dependencies 2024-02-09 02:32:22 +01:00
package.json Updated dependencies 2024-02-09 02:32:22 +01:00
README.md Added Requests 2025-03-28 20:29:11 +01:00
wrangler.toml Initial commit (by create-cloudflare CLI) 2023-09-14 18:58:13 +02:00

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