Declare the route inside the action
Instead of a separate ROUTE() line, an action can carry its own route in the route option. The action is then the single source of truth for its URL, input and behavior.
NEWACTION('Ping/exec', {
name: 'Ping',
route: 'GET /ping/',
action: function($) {
$.success('pong');
}
});