code.js 869 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. 'use strict';
  2. module.exports = [
  3. // 字典类型
  4. {
  5. url: '/api/code/type/create',
  6. jwt: true,
  7. issuer: [ 'naf' ],
  8. log: true,
  9. },
  10. {
  11. url: '/api/code/type/update',
  12. jwt: true,
  13. issuer: [ 'naf' ],
  14. log: true,
  15. },
  16. {
  17. url: '/api/code/type/delete/:id',
  18. jwt: true,
  19. issuer: [ 'naf' ],
  20. log: true,
  21. },
  22. {
  23. url: '/api/code/type/query',
  24. jwt: false,
  25. issuer: [ 'naf' ],
  26. log: false,
  27. },
  28. // 字典
  29. {
  30. url: '/api/code/dictionary/create',
  31. jwt: true,
  32. issuer: [ 'naf' ],
  33. log: true,
  34. },
  35. {
  36. url: '/api/code/dictionary/update',
  37. jwt: true,
  38. issuer: [ 'naf' ],
  39. log: true,
  40. },
  41. {
  42. url: '/api/code/dictionary/delete/:id',
  43. jwt: true,
  44. issuer: [ 'naf' ],
  45. log: true,
  46. },
  47. {
  48. url: '/api/code/dictionary/query',
  49. jwt: false,
  50. issuer: [ 'naf' ],
  51. log: false,
  52. },
  53. ];