Set the following keys in the object passed to the
Router.extend() method to define the API endpoint.
|true||Name of the route.|
|true||Endpoint/path for the route.|
|false||Specifies whether the route is enabled. If not, it won’t be registered, and won’t accept requests.|
An integer that determines the order routes are registered. Routes with a higher sort value are prioritized and registered earlier. For example, say you have
|true||HTTP method (|
|true||Description of the route.|
The function that allows you to interact with API Builder APIs and models and send data to your template engine.
|Renderer Engine||File Extension|
To use a template in the API Builder Route's logic, reference its filename without the extension. Because the template is referenced using the filename, you cannot have the same filename with multiple extensions.