2017-07-31 11:33:31 +05:30

15 lines
232 B
JavaScript

'use strict'
module.exports = index
function index (server) {
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
const title = 'Hapi'
reply.view('index', {title})
}
})
}