From 774dbbe575fa023c11b90fe2eb05f2c8975f08c9 Mon Sep 17 00:00:00 2001 From: Pierre-Gilles Leymarie Date: Mon, 9 Nov 2015 15:36:24 +0100 Subject: [PATCH] Valid ExampleService --- api/hooks/example/services/ExampleService.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/api/hooks/example/services/ExampleService.js b/api/hooks/example/services/ExampleService.js index a943107d9c..adae3d9021 100755 --- a/api/hooks/example/services/ExampleService.js +++ b/api/hooks/example/services/ExampleService.js @@ -1,14 +1,8 @@ -/** - * Created by jaumard on 11/05/2015. - */ + + module.exports = { - /** - * Can be overrided on ExampleService.js file on your sails server - * @param req - * @param res - */ - test: function (req, res) { - console.log("test method on ExampleService"); - res.json('ok'); + + test: function () { + console.log("test method on ExampleService"); } }; \ No newline at end of file