![]() |
1
2
提供静态文件需要 inert 单元 已更新服务器.js
public/index.html
public/js/foo.js
参见: http://hapijs.com/tutorials/serving-files#relative-paths |
![]() |
2
1
参见: http://hapijs.com/tutorials/serving-files#relative-paths 使用 inert 单元
你也可以试试
|
![]() |
Natasha Kelly · 暴露返回值 7 年前 |
![]() |
nxmohamad · 是hapi的服务器。注入生产安全? 7 年前 |
![]() |
Lovika · 如何在hapi中获取登录的用户详细信息 7 年前 |
![]() |
Andre Mendes · 使用Joi验证嵌套对象 7 年前 |
![]() |
Bernhard · 是否可以在hapi中定义全局基本路径 7 年前 |