Skip to content

Commit 08ab1ac

Browse files
committed
Update routing.md
fix example fix: bump appveyor build fix: undo c# 8 syntax for using statements fix: attempt to fix win dispose bug fix: bump build fix: appveyor bump fix: appveyor build fix final
1 parent d91bf76 commit 08ab1ac

File tree

3 files changed

+251
-237
lines changed

3 files changed

+251
-237
lines changed

docs/usage/routing.md

+2-2
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)