我正试图在我的Meteor应用程序上提供一个zip文件但是我被卡住了.经过大量的谷歌搜索似乎最好的方法是与铁路由器,但我不知道如何:
Router.map ->
@route "data",
where: 'server'
path: '/data/:id'
action: ->
data = getBase64ZipData(this.params.id)
this.response.writeHead 200, { 'Content-Type': 'application/zip;base64' }
???
Run Code Online (Sandbox Code Playgroud)