Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed examples in readme files #75

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions examples/memory/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ The object exposed in model.js could be directly passed into the model parameter
For example:

```js
var memorystore = require('model.js');
var express = require('express');
var OAuthServer = require('express-oauth-server');

app.oauth = oauthserver({
model: memorystore
var app = express();

app.oauth = new OAuthServer({
debug: true,
// See https://github.com/oauthjs/node-oauth2-server for specification
model: require('./model')
});
```

Expand Down
8 changes: 7 additions & 1 deletion examples/mongodb/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ The object exposed in model.js could be directly passed into the model parameter
For example:

```js
app.oauth = oauthserver({
var express = require('express');
var OAuthServer = require('express-oauth-server');

var app = express();

app.oauth = new OAuthServer({
debug: true,
// See https://github.com/oauthjs/node-oauth2-server for specification
model: require('./model')
});
```
8 changes: 7 additions & 1 deletion examples/postgresql/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ See schema.sql for the tables referred to in this example.
For example:

```js
var oauth = oauthserver({
var express = require('express');
var OAuthServer = require('express-oauth-server');

var app = express();

app.oauth = new OAuthServer({
debug: true,
// See https://github.com/oauthjs/node-oauth2-server for specification
model: require('./model')
});
```
Expand Down