Update the Grails sample to use Grails 3.3 and Gradle 4.4

Closes gh-469
This commit is contained in:
Jennifer Strater
2017-12-27 21:27:41 +01:00
committed by Andy Wilkinson
parent 85c04b82b0
commit 75bc7e0538
10 changed files with 96 additions and 101 deletions

View File

@@ -19,12 +19,7 @@ package com.example
class UrlMappings {
static mappings = {
delete "/$controller/$id(.$format)?"(action:"delete")
get "/$controller(.$format)?"(action:"index")
get "/$controller/$id(.$format)?"(action:"show")
post "/$controller(.$format)?"(action:"save")
put "/$controller/$id(.$format)?"(action:"update")
patch "/$controller/$id(.$format)?"(action:"patch")
'/notes'(resources: 'note')
"500"(view: '/error')
"404"(view: '/notFound')