Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using "@hapi/hapi": "^19.1.1" I had to install the "cast-array": "^1.0.1" to work fine #31

Open
fabiomotta0311 opened this issue May 18, 2020 · 0 comments

Comments

@fabiomotta0311
Copy link

Additionally, my server.js ran including the hapi-router in the code position below:

const init = async () => {

const server = Hapi.server({
    port: 3000,
    host: 'localhost'
});

try {
    await server.register({
      plugin: require('hapi-router'),
      options: {
        routes: 'src/**/*routes.js'
      }
    })
  } catch (err) {
    throw err
  }

await server.start();
console.log('Server running on %s', server.info.uri);

};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant