Skip to content

Commit 0ac8a21

Browse files
committed
Merge pull request #9928 from codeconsole/9926
Allow restful POST updates #9926
2 parents 3394345 + 9233ce5 commit 0ac8a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-plugin-rest/src/main/groovy/grails/rest/RestfulController.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import org.springframework.http.HttpStatus
3535
@Artefact("Controller")
3636
@Transactional(readOnly = true)
3737
class RestfulController<T> {
38-
static allowedMethods = [save: "POST", update: "PUT", patch: "PATCH", delete: "DELETE"]
38+
static allowedMethods = [save: "POST", update: ["PUT", "POST"], patch: "PATCH", delete: "DELETE"]
3939

4040
Class<T> resource
4141
String resourceName

0 commit comments

Comments
 (0)