cms.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. 'use strict';
  2. module.exports = [
  3. // 栏目
  4. {
  5. url: '/api/cms/column/create',
  6. jwt: true,
  7. issuer: [ 'naf' ],
  8. log: true,
  9. },
  10. {
  11. url: '/api/cms/column/update',
  12. jwt: true,
  13. issuer: [ 'naf' ],
  14. log: true,
  15. },
  16. {
  17. url: '/api/cms/column/delete/:id',
  18. jwt: true,
  19. issuer: [ 'naf' ],
  20. log: true,
  21. },
  22. {
  23. url: '/api/cms/column/query',
  24. jwt: false,
  25. issuer: [ 'naf' ],
  26. log: false,
  27. },
  28. // 内容
  29. {
  30. url: '/api/cms/contents/create',
  31. jwt: true,
  32. issuer: [ 'naf' ],
  33. log: true,
  34. },
  35. {
  36. url: '/api/cms/contents/update',
  37. jwt: true,
  38. issuer: [ 'naf' ],
  39. log: true,
  40. },
  41. {
  42. url: '/api/cms/contents/delete/:id',
  43. jwt: true,
  44. issuer: [ 'naf' ],
  45. log: true,
  46. },
  47. {
  48. url: '/api/cms/contents/query',
  49. jwt: false,
  50. issuer: [ 'naf' ],
  51. log: false,
  52. },
  53. {
  54. url: '/api/cms/contents/fetch',
  55. jwt: false,
  56. issuer: [ 'naf' ],
  57. log: false,
  58. },
  59. {
  60. url: '/api/cms/contents/search',
  61. jwt: false,
  62. issuer: [ 'naf' ],
  63. log: false,
  64. },
  65. // 图片新闻类型
  66. {
  67. url: '/api/cms/imgtype/create',
  68. jwt: true,
  69. issuer: [ 'naf' ],
  70. log: true,
  71. },
  72. {
  73. url: '/api/cms/imgtype/update',
  74. jwt: true,
  75. issuer: [ 'naf' ],
  76. log: true,
  77. },
  78. {
  79. url: '/api/cms/imgtype/delete/:id',
  80. jwt: true,
  81. issuer: [ 'naf' ],
  82. log: true,
  83. },
  84. {
  85. url: '/api/cms/imgtype/query',
  86. jwt: false,
  87. issuer: [ 'naf' ],
  88. log: false,
  89. },
  90. // 图片新闻
  91. {
  92. url: '/api/cms/imgnews/create',
  93. jwt: true,
  94. issuer: [ 'naf' ],
  95. log: true,
  96. },
  97. {
  98. url: '/api/cms/imgnews/update',
  99. jwt: true,
  100. issuer: [ 'naf' ],
  101. log: true,
  102. },
  103. {
  104. url: '/api/cms/imgnews/delete/:id',
  105. jwt: true,
  106. issuer: [ 'naf' ],
  107. log: true,
  108. },
  109. {
  110. url: '/api/cms/imgnews/query',
  111. jwt: false,
  112. issuer: [ 'naf' ],
  113. log: false,
  114. },
  115. {
  116. url: '/api/cms/imgnews/fetch',
  117. jwt: false,
  118. issuer: [ 'naf' ],
  119. log: false,
  120. },
  121. // 菜单
  122. {
  123. url: '/api/cms/menus/create',
  124. jwt: true,
  125. issuer: [ 'naf' ],
  126. log: true,
  127. },
  128. {
  129. url: '/api/cms/menus/update',
  130. jwt: true,
  131. issuer: [ 'naf' ],
  132. log: true,
  133. },
  134. {
  135. url: '/api/cms/menus/delete/:id',
  136. jwt: true,
  137. issuer: [ 'naf' ],
  138. log: true,
  139. },
  140. {
  141. url: '/api/cms/menus/query',
  142. jwt: false,
  143. issuer: [ 'naf' ],
  144. log: false,
  145. },
  146. // 单页
  147. {
  148. url: '/api/cms/pages/create',
  149. jwt: true,
  150. issuer: [ 'naf' ],
  151. log: true,
  152. },
  153. {
  154. url: '/api/cms/pages/update',
  155. jwt: true,
  156. issuer: [ 'naf' ],
  157. log: true,
  158. },
  159. {
  160. url: '/api/cms/pages/delete/:id',
  161. jwt: true,
  162. issuer: [ 'naf' ],
  163. log: true,
  164. },
  165. {
  166. url: '/api/cms/pages/query',
  167. jwt: false,
  168. issuer: [ 'naf' ],
  169. log: false,
  170. },
  171. {
  172. url: '/api/cms/pages/fetch',
  173. jwt: false,
  174. issuer: [ 'naf' ],
  175. log: false,
  176. },
  177. // 配置
  178. {
  179. url: '/api/cms/toconfig/create',
  180. jwt: true,
  181. issuer: [ 'naf' ],
  182. log: true,
  183. },
  184. {
  185. url: '/api/cms/toconfig/update',
  186. jwt: true,
  187. issuer: [ 'naf' ],
  188. log: true,
  189. },
  190. {
  191. url: '/api/cms/toconfig/delete/:id',
  192. jwt: true,
  193. issuer: [ 'naf' ],
  194. log: true,
  195. },
  196. {
  197. url: '/api/cms/toconfig/query',
  198. jwt: false,
  199. issuer: [ 'naf' ],
  200. log: false,
  201. },
  202. ];