Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const methodjs = require('methodjs').getInstance();

methodjs.eco.db = require('./libs/somedb'); //add your db module to ecosystem

methodjs.loadTreeFromDir(__durname+'/methods/'); // load all modules from dir
methodjs.loadTreeFromDir(__dirname+'/methods/'); // load all modules from dir

methodjs.express(app); //register urls for methods in your express.js app

Expand Down Expand Up @@ -54,4 +54,4 @@ methodjs.registerRead('time', {}, function current({req, res}) {

``` bash
curl 127.0.0.1:3000/time/current
```
```