| Summary: | Node server should be consumable as middleware | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Node | Assignee: | 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: | |||
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.