Modified the auth middleware regex to make the slash optional (coincide with turning off strict paths)