Express middleware to redirect URLs with a trailing slash to the same URL without the slash