Upgrade the Grails sample to Grails 3.3.x and Gradle 4.9

Closes gh-540
This commit is contained in:
Andy Wilkinson
2018-08-01 15:08:51 +01:00
parent 8bc5b4e27e
commit 39a5198c3b
9 changed files with 13 additions and 17 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')