jsonHandler method
Returns a Handler that renders the route information as JSON.
Implementation
Handler jsonHandler() {
return (ctx) async {
return ctx.json(<String, dynamic>{
'framework': 'Kronix',
'routes': explore(),
});
};
}