docs: add template docs on elysia checkpoint
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user