Guest User

Untitled

a guest
Jan 14th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. {
  2. "routes": [{
  3. "method": "GET",
  4. "path": "/posts",
  5. "handler": "Post.find",
  6. "config": {
  7. "policies": []
  8. }
  9. },
  10. {
  11. "method": "GET",
  12. "path": "/posts/count",
  13. "handler": "Post.count",
  14. "config": {
  15. "policies": []
  16. }
  17. },
  18. {
  19. "method": "GET",
  20. "path": "/posts/:id",
  21. "handler": "Post.findOne",
  22. "config": {
  23. "policies": []
  24. }
  25. },
  26. {
  27. "method": "GET",
  28. "path": "/posts/:slug",
  29. "handler": "Post.findOne",
  30. "config": {
  31. "policies": []
  32. }
  33. },
  34. {
  35. "method": "POST",
  36. "path": "/posts",
  37. "handler": "Post.create",
  38. "config": {
  39. "policies": []
  40. }
  41. },
  42. {
  43. "method": "PUT",
  44. "path": "/posts/:id",
  45. "handler": "Post.update",
  46. "config": {
  47. "policies": []
  48. }
  49. },
  50. {
  51. "method": "DELETE",
  52. "path": "/posts/:id",
  53. "handler": "Post.delete",
  54. "config": {
  55. "policies": []
  56. }
  57. }
  58. ]
  59. }
Add Comment
Please, Sign In to add comment