Skip to content

Commit

Permalink
Upgrade to Servie 4
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed May 19, 2019
1 parent aea9741 commit 4c9ae3a
Show file tree
Hide file tree
Showing 9 changed files with 2,880 additions and 2,284 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ coverage/
node_modules/
npm-debug.log
dist/
typings/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ notifications:
on_failure: change

node_js:
- '6'
- "8"
- stable

after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,17 @@ npm install servie-mount --save
## Usage

```ts
import { mount } from 'servie-mount'
import { compose } from 'throwback'
import { Response } from 'servie'
import { mount } from "servie-mount";
import { compose } from "throwback";
import { Response } from "servie";

const subapp = compose([
function () {
return new Response({
body: 'hello world'
})
function() {
return new Response("hello world");
}
])
]);

const app = compose([
mount('/hello', subapp)
])
const app = compose([mount("/hello", subapp)]);
```

## TypeScript
Expand Down
Loading

0 comments on commit 4c9ae3a

Please sign in to comment.