Skip to content

Commit 4aaa918

Browse files
committed
add default namespace UrlMapping
1 parent b588153 commit 4aaa918

File tree

2 files changed

+2
-0
lines changed
  • grails-forge/grails-forge-core/src/main/java/org/grails/forge/feature/grails/templates
  • grails-profiles/web/skeleton/grails-app/controllers/@grails.codegen.defaultPackage.path@

2 files changed

+2
-0
lines changed

grails-forge/grails-forge-core/src/main/java/org/grails/forge/feature/grails/templates/urlMappings.rocker.raw

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ package @project.getPackageName()
2727
class UrlMappings {
2828
static mappings = {
2929
@if(applicationType == ApplicationType.WEB || applicationType == ApplicationType.WEB_PLUGIN) {
30+
"/$namespace/$controller/$action?/$id?(.$format)?" {}
3031
"/$controller/$action?/$id?(.$format)?"{
3132
constraints {
3233
// apply constraints here

grails-profiles/web/skeleton/grails-app/controllers/@grails.codegen.defaultPackage.path@/UrlMappings.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package @grails.codegen.defaultPackage@
33
class UrlMappings {
44

55
static mappings = {
6+
"/$namespace/$controller/$action?/$id?(.$format)?" {}
67
"/$controller/$action?/$id?(.$format)?"{
78
constraints {
89
// apply constraints here

0 commit comments

Comments
 (0)