2
0

routes.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. const routes = [
  18. {
  19. path: '/',
  20. component: './Dashboard',
  21. },
  22. {
  23. path: '/dashboard',
  24. component: './Dashboard',
  25. },
  26. {
  27. path: '/serverinfo',
  28. component: './ServerInfo',
  29. },
  30. {
  31. path: '/routes/list',
  32. component: './Route/List',
  33. },
  34. {
  35. path: '/routes/create',
  36. component: './Route/Create',
  37. },
  38. {
  39. path: '/routes/:rid/edit',
  40. component: './Route/Create',
  41. },
  42. {
  43. path: '/routes/:rid/duplicate',
  44. component: './Route/Create',
  45. },
  46. {
  47. path: '/ssl/:id/edit',
  48. component: './SSL/Create',
  49. },
  50. {
  51. path: '/ssl/list',
  52. component: './SSL/List',
  53. },
  54. {
  55. path: '/ssl/create',
  56. component: './SSL/Create',
  57. },
  58. {
  59. path: '/upstream/list',
  60. component: './Upstream/List',
  61. },
  62. {
  63. path: '/upstream/create',
  64. component: './Upstream/Create',
  65. },
  66. {
  67. path: '/upstream/:id/edit',
  68. component: './Upstream/Create',
  69. },
  70. {
  71. path: '/consumer/list',
  72. component: './Consumer/List',
  73. },
  74. {
  75. path: '/consumer/create',
  76. component: './Consumer/Create',
  77. },
  78. {
  79. path: '/consumer/:username/edit',
  80. component: './Consumer/Create',
  81. },
  82. {
  83. path: '/plugin/list',
  84. component: './Plugin/List',
  85. },
  86. {
  87. path: '/plugin/market',
  88. component: './Plugin/PluginMarket',
  89. },
  90. {
  91. path: '/service/list',
  92. component: './Service/List',
  93. },
  94. {
  95. path: '/service/create',
  96. component: './Service/Create',
  97. },
  98. {
  99. path: '/service/:serviceId/edit',
  100. component: './Service/Create',
  101. },
  102. {
  103. path: '/proto/list',
  104. component: './Proto/List',
  105. },
  106. {
  107. path: '/settings',
  108. component: './Setting',
  109. },
  110. {
  111. path: '/plugin-template/list',
  112. component: './PluginTemplate/List',
  113. },
  114. {
  115. path: 'plugin-template/create',
  116. component: './PluginTemplate/Create',
  117. },
  118. {
  119. path: '/plugin-template/:id/edit',
  120. component: './PluginTemplate/Create',
  121. },
  122. {
  123. path: '/user/login',
  124. component: './User/Login',
  125. layout: false,
  126. },
  127. {
  128. path: '/user/logout',
  129. component: './User/Logout',
  130. layout: false,
  131. },
  132. {
  133. component: './404',
  134. },
  135. ];
  136. export default routes;