Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vesln committed Jan 24, 2014
1 parent 0e9ea9b commit 6232e2a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Expand Up @@ -422,6 +422,26 @@ hippie()
.end(fn);
```
### #app
Fire up an HTTP app and set its address as a base URL.
Also works with HTTP handler functions `function(req res){}`.
```js
hippie(expressApp)
.get('/')
.end(fn);
```
```js
hippie()
.app(function(req, res) {
res.end('Bye');
})
.get('/')
.end(fn);
```
## Installation
```bash
Expand Down

0 comments on commit 6232e2a

Please sign in to comment.