NodeJS routing end in / or not

Is there a way to ensure that my NodeJS website always redirects to either with trailing / or without

So
https://www.example.com/my-page
AND
https://www.example.com/my-page/

Are not 2 different URLs but rather i can choose to always redirect a user to always an ending / option?

Community Page
Last updated: