iut-hapi/lib/routes/user.js

12 lines
191 B
JavaScript

'use strict';
module.exports = {
method: 'get',
path: '/user',
options: { },
handler: async (request, h) => {
return { firstName: 'John', lastName: 'Doe'};
}
};