Skip to content

Commit

Permalink
Merge db510fe into dac36ed
Browse files Browse the repository at this point in the history
  • Loading branch information
mrorigo committed Aug 21, 2018
2 parents dac36ed + db510fe commit 0d13d70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ For a full list of available options [see below](#options)
const parch = require("parch");

// define your app
const parch = new parch.Application({
const app = new parch.Application({
authentication: {
secretKey: "ssshhh",
unauthenticated: [/\/posts[\s\S]*/, "/users/resetPassword"]
Expand Down Expand Up @@ -116,15 +116,15 @@ const parch = new parch.Application({
});

// wire up your routes
parch.map(function () {
app.map(function () {
this.resource("user");
this.route("user/resetPassword", {
using: "users:resetPassword", // controller:method
method: "post" // request method
});
});

parch.start(3000).then(() => {
app.start(3000).then(() => {
console.log("App listening.")
});
```
Expand Down

0 comments on commit 0d13d70

Please sign in to comment.