| Summary: | Express index is missing post() function | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Curtis Windatt <curtis.windatt.public> |
| Component: | JS Tools | Assignee: | Curtis Windatt <curtis.windatt.public> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 12.0 | ||
| Target Milestone: | 12.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ff5aac3555f3e63ab5f7f67ab068bb8b40a86400 Fixed in master with tests I looked at the express API and added all the functions for app http://expressjs.com/en/api.html#app.delete.method |
In index.js in the same directory, line 61. app.post('/login', function(req, res) { if (!req.user) { return res.status(200).end(); } return res.status(200).json(req.user); }); post() is reported as an error and should not be. Looks like there is no mention of app.post() in the condensed index for Express we use.