Router match both last slash or not, a middleware to take care of need or not.