Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Exposes the Express server express object, allowing you to call various Express API to customize the web server. This is typically used in the start.js file to setup custom routes, etc.

Note
titlePlease Note
The profoundjs.server.express object is not exposed until the profoundjs.server.listen()  API has been called.

Example

Code Block
languagejavascript
titleServe static path
var app = profoundjs.server.app;
var express = profoundjs.server.express;
 
app.get('/angular', app.use(express.static('../angular')));

...