Also match routes without trailing slash for files app

Fix #11209 

@LukasReschke @MorrisJobke @DeepDiver1975