move static file server before middleware routes - #8134