eg:
Define
routes = [
{
path: '/',
dataFunc: () => { return {hello: 'world'} },
template: './views/index.js',
},
]
Configure
import {configFastify} from 'rend/fastify'
configFastify(routes)
or:
import {configExpress} from 'rend/express'
configExpress(routes)