@GET("articles")class ArticlesIndex {def execute() {respondView()}}def articles = GET("articles") {
respondView()}6 lines vs 3 lines
case "" =>respondJson(body)case "json" =>respondJson(body)case "jsonp" =>respondJsonP(body, callback)case "xml" =>respondXml(<error>Not supported for now</error>)case _ =>respondJson(new APIError(s"Respond type '$respondType' not supported"))}
Yes, but basically you only needs to convert each actions inside controllers to a class.
--
You received this message because you are subscribed to the Google Groups "Xitrum web framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xitrum-framewo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.