@kuklick Yes, the backend file must be a .jsw if you want the code to be able to be exposed to the front end. Change getBadges.js to getBadges.jsw
For more information about web modules, here is an article
@kuklick Yes, the backend file must be a .jsw if you want the code to be able to be exposed to the front end. Change getBadges.js to getBadges.jsw
For more information about web modules, here is an article