2013-04-18 00:43:00 +00:00
|
|
|
# model route
|
2013-04-10 17:55:13 +00:00
|
|
|
|
|
|
|
## About
|
2013-04-09 18:33:29 +00:00
|
|
|
|
2013-04-18 00:43:00 +00:00
|
|
|
A `ModelRoute` inherits from the [route](../route) class. It provides HTTP access to a supplied [model](../model) instance.
|
2013-04-09 18:33:29 +00:00
|
|
|
|
2013-04-10 17:55:13 +00:00
|
|
|
## Config
|
|
|
|
|
2013-04-18 00:43:00 +00:00
|
|
|
Supports all configuration of a [resource](../route).
|
2013-04-10 17:55:13 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### name (optional)
|
|
|
|
|
|
|
|
If defined, overrides the default name (based on the path).
|
|
|
|
|
|
|
|
### Dependencies
|
2013-04-09 18:33:29 +00:00
|
|
|
|
2013-04-10 17:55:13 +00:00
|
|
|
#### model
|
2013-04-09 18:33:29 +00:00
|
|
|
|
2013-04-10 17:55:13 +00:00
|
|
|
Requires a path to an existing model instance.
|