global
Introduction
Usage
module.exports = {
global: {
this: 'is global',
},
};const { createRoute } = require('light');
const { route } = createRoute('global');
module.exports = route(() => {
light.logger.log('hello world!'); // no need to import anything
return {
hello: 'world',
};
});Last updated
Was this helpful?