summaryrefslogtreecommitdiffstats
path: root/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/examples/notes/routes/user.js
diff options
context:
space:
mode:
authorlizi <li.zi30@zte.com.cn>2017-09-28 19:16:20 +0800
committerlizi <li.zi30@zte.com.cn>2017-09-28 19:16:20 +0800
commitb2a98df1fcee69ccfbab37774a9bc3152529242f (patch)
treec50c298e0d6ee20658b386da54ae01623f5bc95a /common/src/main/webapp/usageguide/appserver/node_modules/node-restful/examples/notes/routes/user.js
parent9d0d1b611f53e3f51f8bf158bfad6eb76e84d945 (diff)
Remove the unused thirdpary code from esr-gui.
Change-Id: I9f7d7234df60c7c33abef2efff051ae433e73c8c Issue-ID: AAI-402 Signed-off-by: lizi <li.zi30@zte.com.cn>
Diffstat (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/node-restful/examples/notes/routes/user.js')
-rw-r--r--common/src/main/webapp/usageguide/appserver/node_modules/node-restful/examples/notes/routes/user.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/examples/notes/routes/user.js b/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/examples/notes/routes/user.js
deleted file mode 100644
index f9ad33e..0000000
--- a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/examples/notes/routes/user.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var User = require('../models/user'),
- Note = require('../models/note');
-
-// Here we can add custom route endpoints
-exports = module.exports = {
- // an endpoint called notes
- notes: {
- handler: function(req, res, next, err, model) {
- Note.Obj.find({ creator: model._id }, function(err, list) {
- if (err) next({ status: 404 }); // Error handling
- //res.status is the status code
- res.status = 200;
-
- // res.bundle is what is returned
- res.bundle = list;
- next();
- });
- },
- detail: true, // detail makes sure we have one model to work on i.e. /user/:id/note is the uri
- methods: ['get'], // only respond to GET requests
- },
-}