Jodimoro
Jodimoro

Reputation: 4725

Capturing parameters from a POST request in Spock

In the documentation of Spock, here https://www.spock.li/2015/04/19/type-safe_routing.html, it only describes how to capture parameters from a get request. I need to capture ones from a post. How can I do that?

Upvotes: 1

Views: 460

Answers (1)

You can use the same param' or param functions. From the documentation :

Read a request param. Spock looks POST variables first and then in GET variable

Upvotes: 1

Related Questions