Also match routes without trailing slash

Fix #11209
Merge pull request #11210 from owncloud/issue/11209

Also match routes without trailing slash for files app