Skip to content

Commit 6509fa6

Browse files
committed
Adapt path so it would be valid with new path-to-regexp
1 parent a8f61bf commit 6509fa6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ A minimal static file handler for chubbyts-http-types.
3232
Through [NPM](https://www.npmjs.com) as [@chubbyts/chubbyts-http-static-file][1].
3333

3434
```ts
35-
npm i @chubbyts/chubbyts-http-static-file@^3.0.2
35+
npm i @chubbyts/chubbyts-http-static-file@^3.0.3
3636
```
3737

3838
## Usage
@@ -55,7 +55,7 @@ const handler = createStaticFileHandler(
5555

5656
// for example as a fallback route matching everything
5757
const route = createGetRoute({
58-
path: '/(.*)',
58+
path: '/*path',
5959
name: 'static_file',
6060
handler,
6161
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@chubbyts/chubbyts-http-static-file",
33
"type": "module",
4-
"version": "3.0.2",
4+
"version": "3.0.3",
55
"description": "A minimal static file handler for chubbyts-http-types.",
66
"keywords": [
77
"chubbyts",

0 commit comments

Comments
 (0)