Skip to content

Commit 07ffa08

Browse files
authored
Update routing.md
fix example
1 parent 9aef9fd commit 07ffa08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ Which results in URLs like: https://yourdomain.com/api/v1/people
6262

6363
## Disabling the Default Routing Convention
6464
It is possible to completely bypass the default routing convention for a particular controller and specify a custom routing template by using the `DisableRoutingConvention` attribute.
65-
In the following example, the `CamelCasedModel` resource can be accessed on `/myCustomResources` (this assumes that the default naming strategy is unchanged).
65+
In the following example, the `CamelCasedModel` resource can be accessed on `/my-custom-route`.
6666

6767
```c#
68-
[Route("[controller]"), DisableRoutingConvention]
68+
[Route("my-custom-route"), DisableRoutingConvention]
6969
public class MyCustomResourceController : JsonApiController<CamelCasedModel> { /* ... */ }
7070
```

0 commit comments

Comments
 (0)