This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by abdielou on 11/2/16. | |
*/ | |
class FindAllExtension{ | |
public static def findAll(ParseQuery query){ | |
def allItems = [] | |
def limit = 1000 | |
def page = 0 | |
def currSize = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.vertx.core.http.HttpMethod | |
import io.vertx.groovy.ext.web.Router | |
import io.vertx.groovy.ext.web.handler.BodyHandler | |
def router = Router.router(vertx) | |
router.route().handler(BodyHandler.create()) // This works when defined before the routes | |
def route = router.route(HttpMethod.POST,"/method") | |
//router.route().handler(BodyHandler.create()) // This will NOT work | |
route.handler { routingContext -> |