pofider / node-simple-odata-server

Simple OData server for node.js
MIT License
97 stars 61 forks source link

Use express seems to disable #metadata #19

Closed PremeraSOAPOC closed 8 years ago

PremeraSOAPOC commented 8 years ago

I keep express when applying simple-odata-server as I want to use other features which support express. "app" is the variable name of express.

app.use("/customers", function (req, res) { odataServer.handle(req, res); });

Then when I open a browser with these two addresses http://localhost:3000/$metadata http://localhost:3000/customers/$metadata

Metadata doesn't show up and says "Requested api not found.".

Thank you in advance.