Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 490630

Summary: Express index is missing post() function
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: 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:

Description Curtis Windatt CLA 2016-03-29 14:25:34 EDT
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.
Comment 1 Curtis Windatt CLA 2016-03-30 17:28:00 EDT
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