aesteve / nubes

Annotation layer on top of Vert.x 3
Apache License 2.0
121 stars 35 forks source link

Handle return parameters #22

Closed aesteve closed 9 years ago

aesteve commented 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 ??)

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.