Lumie Versions Save

✨ An opinionated way to keep your express API organized

0.1.2

4 years ago

Now it's possible to use the path option it as shown below:

controllers > index.js

module.exports = {
    path: '/', // note that you can set the path you want here in order to rename 'index'
    '/': {
        get: {
            action: index,
            level: 'public'
        }
    }
};

will output with api as a preUrl:

public	get	[/api/]

instead of:

public	get	[/api/index]