RESTIFY不提供来自子目录的静态文件

我正在尝试使用下面的代码restify静态文件。

app.get(/.*/, restify.serveStatic({ directory: __dirname + '/public', default: 'index.html' })); 

调用GET /或GET /index.html按预期工作。 调用公共的子目录中的任何文件不起作用。 例如,调用GET /css/style.css会导致404错误。该文件存在但未被提供。

有任何想法吗?

像这样尝试,对我来说工作得很好:

 app.get(/.*/, restify.serveStatic({ directory: 'public', default: 'index.html' }));