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

Bug 400029

Summary: Node server should be consumable as middleware
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: NodeAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-02-05 16:44:05 EST
You should be able to load the Orion node server as a module and add it into your connect/express app with .use(), like this:

  var orion = require('orion')
  myApp.use(orion);

Currently this is not possible because server.js does not export anything.
We should look at how other libraries achieve this.