Hi. So im basically trying to make my own MVC with hapi, but to do this i need to be able to pass functions to my handler thru a "controller". The only way i can make a handler work is by doinghandler: function(request,reply){reply('hello')}But i want to be able to used a named function instead thru an export,like this.Function Index(request,reply){reply('hello')}Then set my handler equal to handler:Index().
Submitted July 24, 2017 at 11:10PM by Caller_of_Souls
No comments:
Post a Comment