Skip to content

Commit

Permalink
docs(guides): path must start with / in 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Marton committed Mar 22, 2018
1 parent d653625 commit 906586b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/guides/6to7guide.md
Expand Up @@ -25,6 +25,14 @@ The new version of restify never returns `RequestAbortedError`.
Option `strictRouting` is removed `createServer({ strictRouting: false })`.
Strict routing is the new default.

### Path must to start with `/`

In restify 7.x path must start with a `/`.
For example `server.get('foo')` is invalid, change it to `server.get('/foo')`.

If you use [enroute](https://github.com/restify/enroute) be sure
that you updated it to the latest version.

### Different `RegExp` usage in router path and wildcards

restify's new router backend
Expand Down

0 comments on commit 906586b

Please sign in to comment.