-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy paththing.controller(noModels).js
38 lines (36 loc) · 1.43 KB
/
thing.controller(noModels).js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Using Rails-like standard naming convention for endpoints.
* GET /things -> index
* POST /things -> create
* GET /things/:id -> show
* PUT /things/:id -> update
* DELETE /things/:id -> destroy
*/
'use strict';
// Get list of things
exports.index = function(req, res) {
res.json([{
name: 'Development Tools',
info: 'Integration with popular tools such as Bower, Grunt, Karma, Mocha, JSHint, ' +
'Node Inspector, Livereload, Protractor, Jade, Stylus, Sass, CoffeeScript, and Less.'
}, {
name: 'Server and Client integration',
info: 'Built with a powerful and fun stack: MongoDB, Express, AngularJS, and Node.'
}, {
name: 'Smart Build System',
info: 'Build system ignores `spec` files, allowing you to keep tests alongside code. ' +
'Automatic injection of scripts and styles into your index.html'
}, {
name: 'Modular Structure',
info: 'Best practice client and server structures allow for more code reusability and ' +
'maximum scalability'
}, {
name: 'Optimized Build',
info: 'Build process packs up your templates as a single JavaScript payload, minifies ' +
'your scripts/css/images, and rewrites asset names for caching.'
}, {
name: 'Deployment Ready',
info: 'Easily deploy your app to Heroku or Openshift with the heroku and openshift ' +
'sub-generators'
}]);
};