You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds the `legacyRoutes` option, defaulted to `true`.
When `legacyRoutes` is true, the `?` character will automatically be
escaped:
```ts
server.respondWith('GET', '/hello?world', handler);
```
When it is false (future default), `?` has a special meaning in that it
denotes which parameters in a path are optional. Due to this, it will
not be escaped automatically:
```ts
server.respondWith('GET', '/hello\\?world', handler);
// so we can have optional params
server.respondWith('GET', '/hello/:param?', handler);
```
0 commit comments