created routing middleware to append slash only in admin