0
我要为静态SWF使用快递框架生成类似于动态视图:Node.js的快递框架提供静态swf文件
app.get('/*', function(req, res){
// serve swf here
});
感谢
我要为静态SWF使用快递框架生成类似于动态视图:Node.js的快递框架提供静态swf文件
app.get('/*', function(req, res){
// serve swf here
});
感谢
是有一些原因,你不能只是一个声明静态文件夹?
app.use(express.static(__dirname + '/public'));
如果你不想使用快速静态文件夹,那么你可以只读取该文件关闭文件系统,并直接服务于它。
res.sendfile('path/to/my.swf');