profoundjs.server.express
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.
Please Note
The profoundjs.server.express object is not exposed until the profoundjs.server.listen()Â API has been called.
Example
Serve static path
var app = profoundjs.server.app;
var express = profoundjs.server.express;
Â
app.get('/angular', app.use(express.static('../angular')));
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!