Skip to content

omphalos.mount

function omphalos.mount(router)

Mount a router created by omphalos.createRouter() into the underlying application.

Custom routers are mounted in the order that extensions are loaded.

Example:

Simple Router Test
const router = omphalos.createRouter();
router.get('/my_custom_route', (req, res) => res.send('it worked!'))
omphalos.mount(router);