-
-
Notifications
You must be signed in to change notification settings - Fork 967
Closed
Description
I created two controllers.
class WorkController {
def index() { render "WorkController" }
}class WorksheetController {
def index() { render "WorksheetController" }
}I've defined the following routes in UrlMappings.groovy
"/api/worksheet"(resources:"worksheet")
"/api/work"(resources:"work")URL: /api/work shows "WorkController". This is correct.
URL: /api/worksheet shows "WorkController". This is incorrect.
And I found a workaround.
UrlMappings.groovy
"/api/work"(resources:"work")
"/api/worksheet"(resources:"worksheet")