Skip to content

Commit 2da996b

Browse files
authored
[Docs][Bug] Fix bad code in example.
1 parent 0a4bedf commit 2da996b

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

README.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ Now, we will write an HTTP component and load our component and the HTTP plugin:
3434

3535
```js
3636
import { Manager } from '@leverage/core';
37-
import http from '@leverage/plugin-http';
37+
import HTTP from '@leverage/plugin-http';
3838

3939
const manager = new Manager();
40+
const http = new HTTP();
4041

4142
const route = {
4243
is: 'component',
@@ -53,21 +54,7 @@ const route = {
5354
}
5455
}
5556

56-
manager.add(route);
57+
manager.add(http, route);
5758

5859
http.listen(8080);
5960
```
60-
61-
Want To Dig In Deeper?
62-
----------------------
63-
64-
Check out [the wiki](https://github.com/jakehamilton/leverage/wiki)!
65-
66-
Learn from example applications:
67-
68-
+ *coming soon*
69-
70-
Roadmap
71-
-------
72-
73-
Most (if not all) roadmap items are tracked on [the project board](https://github.com/jakehamilton/leverage/projects/2).

0 commit comments

Comments
 (0)