File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ import { Elysia } from 'elysia'
458
458
459
459
const app = new Elysia ()
460
460
// Global middleware
461
- .onRequest (' /user ' , ({ method , path }) => {
461
+ .onRequest (({ method , path }) => {
462
462
console .log (` ${method } ${path } ` )
463
463
})
464
464
// Route-specific middleware
Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ import { Elysia } from 'elysia'
524
524
525
525
const app = new Elysia ()
526
526
// Global middleware
527
- .onRequest (' /user ' , ({ method , path }) => {
527
+ .onRequest (({ method , path }) => {
528
528
console .log (` ${method } ${path } ` )
529
529
})
530
530
// Route-specific middleware
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ import { Elysia } from 'elysia'
473
473
474
474
const app = new Elysia ()
475
475
// Global middleware
476
- .onRequest (' /user ' , ({ method , path }) => {
476
+ .onRequest (({ method , path }) => {
477
477
console .log (` ${method } ${path } ` )
478
478
})
479
479
// Route-specific middleware
Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ You can find all the source code for Elysia types in `elysia/type-system`.
471
471
The following are types provided by Elysia:
472
472
473
473
<Deck >
474
- <Card title="UnoinEnum " href="#unionenum">
474
+ <Card title="UnionEnum " href="#unionenum">
475
475
`UnionEnum` allows the value to be one of the specified values.
476
476
</Card>
477
477
<Card title="File" href="#file">
You can’t perform that action at this time.
0 commit comments