Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.get('/', controller.index);
- export function index(req, res) {
- return Driver.find().exec()
- .then(respondWithResult(res))
- .catch(handleError(res));
- }
- export function DriverResource($resource) {
- 'ngInject';
- return $resource('/api/drivers/:id');
- }
- this.driverList = Driver.query({company: 'foo'});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement