Skip to content

Commit

Permalink
chore(readme): minor style fix for code example (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean3z committed Aug 16, 2017
1 parent 726b391 commit 004d685
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -45,16 +45,15 @@ Follow restify on [![alt text][1.2]][1]
```javascript
var restify = require('restify');


const server = restify.createServer({
name: 'myapp',
version: '1.0.0'
});

server.use(restify.plugins.acceptParser(server.acceptable));
server.use(restify.plugins.queryParser());
server.use(restify.plugins.bodyParser());


server.get('/echo/:name', function (req, res, next) {
res.send(req.params);
return next();
Expand All @@ -71,7 +70,6 @@ var assert = require('assert');
var clients = require('restify-clients');

var client = clients.createJsonClient({

url: 'http://localhost:8080',
version: '~1.0'
});
Expand Down

0 comments on commit 004d685

Please sign in to comment.