Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bulaluis committed Oct 14, 2015
1 parent 3637b5e commit 35ffbc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ server.connection({ port: 8000 });
server.register([{
register: require('hapi-mongoose-connect'),
options: {
uri: 'mongodb://localhost/my-database'
mongooseUri: 'mongodb://localhost/my-database'
}
}, {
register: require('hapi-mongoose-models'),
options: {
pattern: './models/**/*.js',
options: {
globPattern: './models/**/*.js',
globOptions: {
cwd: __dirname
}
}
Expand All @@ -49,7 +49,7 @@ server.register([{

server.route({
method: 'POST',
path: '/api/v1/{model}', // The same is declared in the `hapi-mongoose-request` options
path: '/api/v1/{model}', // The same is declared in the `hapi-mongoose-request` options
method: function (request, reply) {

request.Model.create(request.payload, function (err, doc) {
Expand Down

0 comments on commit 35ffbc0

Please sign in to comment.