package read.to.me.grails.api

class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }

        "/"(controller: 'application', action:'index')
        "/api/book"(resources: 'book');
        "500"(view: '/error')
        "404"(view: '/notFound')
    }
}
