Guest User

Untitled

a guest
Jul 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. {
  2. name : "main",
  3. handle : (asked,answer) => {
  4. answer.write("from main");
  5. }
  6. }
  7.  
  8. - route:
  9. uri: /this/is/the/uri
  10. when: ["POST", "PUT"] #default: GET
  11. to: serviceName
  12. after: [ authentication , cache-out ]
  13. then: [ cache-in , compress ]
  14. in: dev #environment
  15.  
  16. Muneem({
  17. mappings : "path/for/routes/mappings",
  18. handlers : "path/for/handlers"
  19. }).start();
  20.  
  21. muneem.add(handlerType, ....);
  22.  
  23. muneem.addHandler(...)
  24. muneem.addSerializer(...)
  25. muneem.addCompressor((...)
  26. muneem.route(...)
Add Comment
Please, Sign In to add comment