NavyKit supports static and dynamic route path. To write a proper route path, you must follow the patterns.

Static path

For a static path, you can just use a slash and the path name.

app.get("/greet", ...)
app.get("/legal/privacy", ...)

For example, /greet could only be used if the location is /greet.

Dynamic path

For a dynamic path, you can use a colon and the parameter name for it.

app.get("/greet/:name", ...)
app.get("/user/:username/projects/:project", ...)

A dynamic path matches everything, so the location /greet/John will match the route /greet/:name.

Default path

For the default path, you can use /. If the location doesn't have any path, the route / will be called.