Skip to content

Commit e49bcda

Browse files
authored
Merge pull request #25 from horsaen/main
update snippet
2 parents d441440 + fd4382e commit e49bcda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/integrations/static-file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import { Elysia } from 'elysia'
3030
import { staticPlugin } from '@elysia/static'
3131

3232
new Elysia()
33-
.use(staticPlugin, {
34-
path: 'public'
35-
})
33+
.use(staticPlugin({
34+
assets: 'public'
35+
}))
3636
.listen(8080)
3737
```

0 commit comments

Comments
 (0)