Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arrest.RestMongoAPI is not a function #6

Open
daedaluscrow opened this issue Apr 20, 2016 · 1 comment
Open

arrest.RestMongoAPI is not a function #6

daedaluscrow opened this issue Apr 20, 2016 · 1 comment

Comments

@daedaluscrow
Copy link

daedaluscrow commented Apr 20, 2016

I'm testing with the example code from the README, but I get this error:

arrest.use(app, '/api', new arrest.RestMongoAPI('mongodb://localhost:27017', 'iot'));
                               ^

TypeError: arrest.RestMongoAPI is not a function
    at Object.<anonymous> (/home/jonathan/iot/index.js:8:32)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

It seems to be looking for the function that used to be in /lib/rest.js, but it looks like it was removed from the repo in commit ffae4d8.

@0xfede
Copy link
Member

0xfede commented Apr 20, 2016

Hi there, due to a mistake, I've merged the development branch into the master. For the time being, please use this version https://github.com/vivocha/arrest/releases/tag/1.1.4.

In the coming weeks I'll be releasing a completely revamped version with support for OpenAPI (swagger) and RQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants