joyent-portal/spikes/metrics-service/graphql/src/plugins.js
2016-11-04 17:11:35 +00:00

16 lines
262 B
JavaScript

module.exports = [
require('inert'), {
register: require('hapi-graphql'),
options: {
query: {
pretty: true,
graphiql: true,
schema: require('./schema')
},
route: {
path: '/graphql'
}
}
}
];