You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 regels
923 B

  1. {
  2. "routes": [
  3. {
  4. "method": "GET",
  5. "path": "/services",
  6. "handler": "service.find",
  7. "config": {
  8. "policies": []
  9. }
  10. },
  11. {
  12. "method": "GET",
  13. "path": "/services/count",
  14. "handler": "service.count",
  15. "config": {
  16. "policies": []
  17. }
  18. },
  19. {
  20. "method": "GET",
  21. "path": "/services/:id",
  22. "handler": "service.findOne",
  23. "config": {
  24. "policies": []
  25. }
  26. },
  27. {
  28. "method": "POST",
  29. "path": "/services",
  30. "handler": "service.create",
  31. "config": {
  32. "policies": []
  33. }
  34. },
  35. {
  36. "method": "PUT",
  37. "path": "/services/:id",
  38. "handler": "service.update",
  39. "config": {
  40. "policies": []
  41. }
  42. },
  43. {
  44. "method": "DELETE",
  45. "path": "/services/:id",
  46. "handler": "service.delete",
  47. "config": {
  48. "policies": []
  49. }
  50. }
  51. ]
  52. }