#
HTML
The router
option also enable mocking HTML pages:
const myService = {
router: (router) => {
router.get('/login', (req, res) => {
res.render('login');
});
}
}
This will render the view located at <my-service>/views/login.ejs
using ejs
.