Skip to content

Commit

Permalink
Update manifest loading order in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhue committed Apr 15, 2018
1 parent 003b29f commit 06173cc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions API.md
Expand Up @@ -47,20 +47,20 @@ Here's the complete rundown of how files and directories are mapped to API calls
- **`path.js`** - export `relativeTo`.
- **`path/index.js`** - export `relativeTo`.

#### Plugin registrations
> [`await server.register(plugins, [options])`](https://github.com/hapijs/hapi/blob/master/API.md#server.register())
- **`plugins.js`** - export an array of objects `{ plugins, options }`.
- **`plugins/index.js`** - export an array of objects.
- **`plugins/plugin-name.js`** - export an object. If a plugin isn't specified in `plugins` it will be `require()`d using the filename.

#### Provisioning caches
> [`await server.cache.provision(options)`](https://github.com/hapijs/hapi/blob/master/API.md#server.cache.provision())
- **`caches.js`** - export an array of `options`.
- **`caches/index.js`** - export an array of `options`.
- **`caches/some-cache-name.js`** - export `options`. The cache's `options.name` will be assigned `'cache-name'` from the filename if a name isn't already specified.

#### Plugin registrations
> [`await server.register(plugins, [options])`](https://github.com/hapijs/hapi/blob/master/API.md#server.register())
- **`plugins.js`** - export an array of objects `{ plugins, options }`.
- **`plugins/index.js`** - export an array of objects.
- **`plugins/plugin-name.js`** - export an object. If a plugin isn't specified in `plugins` it will be `require()`d using the filename.

#### View manager (for [vision](https://github.com/hapijs/vision))
> [`server.views(options)`](https://github.com/hapijs/vision/blob/master/API.md#serverviewsoptions)
Expand Down

0 comments on commit 06173cc

Please sign in to comment.