serveLocalFile as middleware