Closed aesteve closed 9 years ago
At least for sync methods ( #21 ) : when a method doesn't use the RoutingContext (so that we're sure context.next() is not called before returning ??)
RoutingContext
Dependeing on the controller class we could do different stuff.
In an APIController we'll marshall the return type, or just prepare response if it's a String, or a JsonObject,
APIController
In a ViewController we'll assume that's the view name if it's a String.
ViewController
At least for sync methods ( #21 ) : when a method doesn't use the
RoutingContext
(so that we're sure context.next() is not called before returning ??)Dependeing on the controller class we could do different stuff.
In an
APIController
we'll marshall the return type, or just prepare response if it's a String, or a JsonObject,In a
ViewController
we'll assume that's the view name if it's a String.