From 80bfaec024ef05dd8db9f611832095dee9bc50d9 Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Sun, 1 Jun 2025 06:08:55 +0000 Subject: [PATCH] docs: add template docs on elysia checkpoint --- docs/guide/middleware/elysia.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guide/middleware/elysia.md b/docs/guide/middleware/elysia.md index 7b6e78c..706bea1 100644 --- a/docs/guide/middleware/elysia.md +++ b/docs/guide/middleware/elysia.md @@ -6,6 +6,9 @@ bun add elysia @cap.js/middleware-elysia ``` +> [!NOTE] +> The template just needs to have a widget or hidden solver pointing at the `/__cap_clearance` URL. The sample template is [here](https://github.com/tiagorangel1/cap/blob/main/checkpoints/elysia/index.html). + ## Usage ```javascript @@ -29,4 +32,4 @@ new Elysia() .listen(3000); ``` -That's it! You can now use the middleware to protect your routes. \ No newline at end of file +That's it! You can now use the middleware to protect your routes.