1.0.7 • Published 8 years ago

sails-linking-controllers v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

sails-linking-controllers

Build Coverage Quality Dependencies

Description

Ability to generate hateoas-compatible links to actions (list/create) on controllers.

Install

$ npm install sails-linking-controllers

Usage

Add a links array to your controller's _config object, like so (in yourController.js):

    module.exports = {
      ...
      _config: {
          ...
          links: ['action1', 'action2', ...],
          ...
      },
      ...
   }

Links to perform those actions will then be added to your responseses.

Tests

$ npm install
$ npm test
1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.0

8 years ago