loopback/node_modules/model-route/README.md

22 lines
393 B
Markdown
Raw Normal View History

2013-04-18 00:43:00 +00:00
# model route
## 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
## Config
2013-04-18 00:43:00 +00:00
Supports all configuration of a [resource](../route).
### Options
#### name (optional)
If defined, overrides the default name (based on the path).
### Dependencies
2013-04-09 18:33:29 +00:00
#### model
2013-04-09 18:33:29 +00:00
Requires a path to an existing model instance.