| 12345678910111213141516171819 |
- // https://github.com/connor11528/task-app-backend/blob/master/src/api/index.js
-
- const profileApi = {
- get: {
- async handler(request, h) {
- try {
- console.log('get handler for profile');
-
- // You have to return SOMETHING
- return { thing: 'profile' }
-
- } catch (err) {
- // Boom.badImplementation(err);
- }
- }
- }
- };
-
- module.exports = profileApi;
|