add trailing slash to static middleware