在Express.JS中调用没有名字的图像文件

时间:2017-01-16 09:35:09

标签: node.js express

ExpressJS我想要调出图片,而不是pathname

也许扫描服务器端的目录,然后将路径信息发送到客户端

paths看起来像:

/images/blocks/trees/random-file-name.png

/images/blocks/grass/random-file-name.png

关于如何实现这一目标的一些想法?

0 个答案:

没有答案