Skip to content

Commit 143fb53

Browse files
committed
2 parents a90d7bb + d573dfc commit 143fb53

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

docs/essential/route.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ We can categorize the URL and path as follows:
186186

187187
| URL | Path |
188188
| ------------------------------- | ------------ |
189-
| http://site.com/ | / |
190-
| http://site.com/hello | /hello |
191-
| http://site.com/hello/world | /hello/world |
192-
| http://site.com/hello?name=salt | /hello |
193-
| http://site.com/hello#title | /hello |
189+
| http://example.com/ | / |
190+
| http://example.com/hello | /hello |
191+
| http://example.com/hello/world | /hello/world |
192+
| http://example.com/hello?name=salt | /hello |
193+
| http://example.com/hello#title | /hello |
194194

195195
::: tip
196196
If the path is not specified, the browser and web server will treat the path as '/' as a default value.

docs/integrations/better-auth.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,11 @@ import { passkey } from 'better-auth/plugins/passkey'
6868
import { Pool } from 'pg'
6969

7070
export const auth = betterAuth({
71-
basePath: '/api' // [!code ++]
71+
basePath: '/' // [!code ++]
7272
})
7373
```
7474

75-
Then we can access Better Auth with `http://localhost:3000/auth/api`.
76-
77-
Unfortunately, we can't set `basePath` of a Better Auth instance to be empty or `/`.
78-
75+
Then we can access Better Auth with `http://localhost:3000/auth`.
7976

8077
## Swagger / OpenAPI
8178

docs/plugins/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ This is to ensure developers end up with a performant web server they intend to
5959
- [Vite Plugin SSR](https://github.com/timnghg/elysia-vite-plugin-ssr) - Vite SSR plugin using Elysia server
6060
- [OAuth 2.0](https://github.com/kravetsone/elysia-oauth2) - a plugin for [OAuth 2.0](https://en.wikipedia.org/wiki/OAuth) Authorization Flow with more than **42** providers and **type-safety**!
6161
- [OAuth2](https://github.com/bogeychan/elysia-oauth2) - handle OAuth 2.0 authorization code flow
62+
- [OAuth2 Resource Server](https://github.com/ap-1/elysia-oauth2-resource-server) - a plugin for validating JWT tokens from OAuth2 providers against JWKS endpoints with support for issuer, audience, and scope verification
6263
- [Elysia OpenID Client](https://github.com/macropygia/elysia-openid-client) - OpenID client based on [openid-client](https://github.com/panva/node-openid-client)
6364
- [Rate Limit](https://github.com/rayriffy/elysia-rate-limit) - simple, lightweight rate limiter
6465
- [Logysia](https://github.com/tristanisham/logysia) - classic logging middleware
@@ -113,6 +114,7 @@ This is to ensure developers end up with a performant web server they intend to
113114
- [Decorators for Elysia.js](https://github.com/Ateeb-Khan-97/better-elysia) - seamlessly develop and integrate APIs, Websocket and Streaming APIs with this small library.
114115
- [Elysia Protobuf](https://github.com/ilyhalight/elysia-protobuf) - support protobuf for Elysia.
115116
- [Elysia Prometheus](https://github.com/m1handr/elysia-prometheus) - Elysia plugin for exposing HTTP metrics for Prometheus.
117+
- [Elysia Remote DTS](https://github.com/rayriffy/elysia-remote-dts) - A plugin that provide .d.ts types remotely for Eden Treaty to consume.
116118

117119
## Complementary projects:
118120
- [prismabox](https://github.com/m1212e/prismabox) - Generator for typebox schemes based on your database models, works well with elysia

0 commit comments

Comments
 (0)