Skip to content

Commit

Permalink
added root message for get request
Browse files Browse the repository at this point in the history
  • Loading branch information
urigolani committed Nov 22, 2011
1 parent 986568a commit 475fbfb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/rinuts.js
Expand Up @@ -49,7 +49,12 @@ testService.prototype = {
this.webService.use(express.bodyParser());

//
// web api:
// web api:

this.webService.get('/', function (req, res) {
res.send('rinuts test service');
});

this.webService.get('/tests/:testName', function (req, res) {
res.json(formatTest(req.params.testName));
});
Expand Down

0 comments on commit 475fbfb

Please sign in to comment.