Added middleware for ignoring last trailing slash.