Also match routes without trailing slash for files app

Fix #11209 

@LukasReschke @MorrisJobke @DeepDiver1975 
why do this for files only? the issue applies to any other app as well - as discussed on irc