plugin-rest/spring-security-rest-testapp-profile/skeleton/grails-app/controllers/rest/AnonymousController.groovy (8 lines of code) (raw):
package rest
import grails.plugin.springsecurity.annotation.Secured
@Secured(['permitAll'])
class AnonymousController {
def index() {
render "Hi"
}
}