Skip to content

Commit

Permalink
doc(readme): Update documentation with latest core version
Browse files Browse the repository at this point in the history
  • Loading branch information
akanass committed Jul 19, 2017
1 parent 7a3f65f commit 0befc8e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ $ yarn add @hapiness/swag

```javascript
"dependencies": {
"@hapiness/core": "^1.0.0-beta.6",
"@hapiness/swag": "^1.0.0-beta.6",
"@hapiness/core": "^1.0.0-rc.6",
"@hapiness/swag": "^1.0.0-rc.6",
//...
}
//...
Expand All @@ -70,7 +70,7 @@ $ yarn add @hapiness/swag
### import `SwagModule` from the library

```javascript
import { Hapiness, HapinessModule, HttpServer, Route, OnStart, OnGet } from '@hapiness/core';
import { Hapiness, HapinessModule, HttpServerExt, Route, OnGet } from '@hapiness/core';
import { SwagModule } from '@hapiness/swag';
@Route({
method: 'GET',
Expand All @@ -96,10 +96,6 @@ class GetTodo implements OnGet {

@HapinessModule({
version: '1.0.0',
options: {
host: '0.0.0.0',
port: 4443
},
imports: [
SwagModule.setConfig({ info: { title: 'Todo Service' } })
],
Expand All @@ -109,7 +105,9 @@ class HapinessModuleApp {

}

Hapiness.bootstrap(HapinessModuleApp);
Hapiness.bootstrap(HapinessModuleApp, [
HttpServerExt.setConfig({ host: '0.0.0.0', port: 4443 })
]);


```
Expand Down

0 comments on commit 0befc8e

Please sign in to comment.