Guest User

Untitled

a guest
Jul 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. def listAllProducts = {
  2. // retrieve and render all products in xml format...
  3. }
  4.  
  5. def listProductById = {
  6. // retrieve and render a product's detail in xml format...
  7. }
  8.  
  9. "/products"(controller:"product", parseRequest:true) {
  10. action = [GET:"listAllProducts"]
  11. }
  12.  
  13. "/products/$id"(controller:"product", parseRequest:true) {
  14. action = [GET:"listProductById"]
  15. }
  16.  
  17. The requested resource (/myapp/products/1) is not available
Add Comment
Please, Sign In to add comment