AdonisJs. Routes refactoring

Image for post
Image for post
Route
.resource('users', 'UsersController')
.middleware(['auth'])
Image for post
Image for post
require('./auth');
require('./user');
require('./addresses');
require('./profiles');
...
Image for post
Image for post

Java, Spring, Node.js, AdonisJs, React.js and Flutter developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store