docs: add template docs on elysia checkpoint

This commit is contained in:
Kieran Klukas
2025-06-01 06:08:55 +00:00
parent 755a3ec99b
commit 80bfaec024
+4 -1
View File
@@ -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.
That's it! You can now use the middleware to protect your routes.