Static file and directory handlers for hapi.js.
npm: npm install @hapi/inert
npm install @hapi/inert
yarn: yarn add @hapi/inert
yarn add @hapi/inert
After registration, this plugin adds a new method to the toolkit object and exposes the 'file' and 'directory' route handlers.
toolkit
'file'
'directory'
Note that inert uses the custom 'file' variety to signal that the response is a static file generated by this plugin.
variety