joyent-portal/spikes/metrics-service/graphql/src/plugins.js

16 lines
262 B
JavaScript
Raw Normal View History

2016-11-04 19:09:58 +02:00
module.exports = [
require('inert'), {
register: require('hapi-graphql'),
options: {
query: {
pretty: true,
graphiql: true,
schema: require('./schema')
},
route: {
path: '/graphql'
}
}
}
];