Skip to content

sample codes need be updated #9

@ghost

Description

Hello @johnbrett ,
I just readed your book on safaribooksonline, it's really an awosome tutorial for hapi.js beginners.
Thanks for the book.

While reading, I found a little piece of code maybe need be updated:
Chapter 3 - Plugins/example 4 - Using Glue to Compose Our Server/index.js--line: 10)
plugins: [ { 'hapi-level': { path: './temp', config: { valueEncoding: 'json' } } }, { './user-store.js': {} }, { 'blipp': {} } ]
this causes a "plugins not allowed error" since Glue updated its registration api as below
registrations: [ { plugin: { register: './assets', options: { uglify: true } } }]

for details, refer to https://github.com/hapijs/glue/blob/master/API.md

I'm not sure if an update is necessary, just for your reference.
Thanks for the book again!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions