Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

Using Plugin in Routes #2

@zizzle6717

Description

@zizzle6717

This would be a phenomenal package if I could figure out how to get it working.

I tried this...
let db = request.plugins["hapi-massive"].db;

...and the error tells me that request is undefined...So, if I try the same thing within the request handler, the error says...'Cannot ready property "db" of undefined'

I'm fairly new to plugins, especially custom plugins, and I feel like I'm missing something obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions