megastef / node-crate

Node.js base DB-Driver for CRATE (www.crate.io)
52 stars 18 forks source link

_sql URI handler not found #1

Closed mfussenegger closed 10 years ago

mfussenegger commented 10 years ago

Hi,

I've tried to integrate node-crate into a sample application that we're running. Works fine so far but I've had to change the path in https://github.com/megastef/node-crate/blob/master/node-crate.js#L28 from "_sql" to "/_sql". Otherwise it didn't find the URI handler.

Is that a known problem?

megastef commented 10 years ago

Yes, the generated bundle.js was not up to date, and the commit with changed in node-crate.js was not pushed. I just did.

I assume it was in bundle.js for browser version? As far we know in node-crate.js it works without "/".

megastef commented 10 years ago

I've just checked with a testpage that I put into crate-0.31.0/plugins/test/_site loading "./bundle.js" and it did work / selected and displayed results. I had to do that to avoid cross domain scripting error.