Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- import _ from 'lodash';
- let model = require('./product.model');
- // Gets a list of Products
- export function index(req, res) {
- model.retrieveProducts.then(
- function(data) {
- res.send(data);
- }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement