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

Bug 402910

Summary: Use Express for routing requests
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: NodeAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-03-11 10:21:06 EDT
The Node server code is currently mostly made up of resource handlers (eg file.js, workspace.js), each of which has GET/POST/PUT/DELETE methods. The common logic for "routing" (really just path-chopping) is in api.js and resource.js. The resource handlers are injected into the server as middleware in index.js.

It would probably be better to use a high-level web app framework like Express for routing. The URI schema approach (eg. "/file/:path") looks attractive. Should investigate this.
Comment 1 John Arthorne CLA 2015-05-05 14:53:07 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html