diff --git a/src/index.ts b/src/index.ts index 3a1237d..6486d7b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,6 +19,20 @@ router .get("/population/", index) .get("/population/all", handleAll) .get("/population/:id", handleOne) + .get( + "/population~/flags", + (_1, _2, _3, cache: Cache, flags: Flags) => { + return new Response( + JSON.stringify({ + ...flags, + disableCache: cache.disableCache, + }), + { + headers: { "content-type": "application/json" }, + } + ); + } + ) .all("*", () => { return new Response("Not found", { headers: { "content-type": "text/plain" },