UNPKG

mvcx

Version:

A web based MVC framework for Node JS.

20 lines (16 loc) 311 B
module.exports = function( q ){ var self = this; this.q = q.value; this.retrieve = function(model){ return [ { bookId: 1, name: 'Harry Potter' }, { bookId: 2, name: 'Game of Thrones' } ]; }; }; module.exports.$type = 'api' module.exports.$inject = [ 'q' ];