Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
evheniy committed Dec 9, 2017
1 parent 5178c4b commit e585194
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,8 @@

## How to use

You can put any type of response data: value, promise, error.

### Without response

const App = require('yeps');
Expand Down Expand Up @@ -112,5 +114,13 @@
return response.redirect(url = '/', code = 301);
});

### Reject

If you need to send request and finish response

app.then(async (ctx) => {
return ctx.response.reject(data);
});


#### [YEPS documentation](http://yeps.info/)

0 comments on commit e585194

Please sign in to comment.