Skip to content

Commit a97c150

Browse files
authored
docs(guides): path must start with / in 7.x (#1630)
1 parent 4a2e5cc commit a97c150

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/guides/6to7guide.md

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ Strict routing is the new default.
3131
Use `ignoreTrailingSlash: true` server option if you don't want to differentiate
3232
them from each other.
3333

34+
### Path must to start with `/`
35+
36+
In restify 7.x path must start with a `/`.
37+
For example `server.get('foo')` is invalid, change it to `server.get('/foo')`.
38+
39+
If you use [enroute](https://github.com/restify/enroute) be sure
40+
that you updated it to the latest version.
41+
3442
### Different `RegExp` usage in router path and wildcards
3543

3644
restify's new router backend

0 commit comments

Comments
 (0)