@ozdao/prometheus-framework 0.2.87 → 0.2.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. package/dist/auth.server.js +0 -16
  2. package/dist/auth.server.mjs +0 -16
  3. package/dist/community.server.js +0 -24
  4. package/dist/community.server.mjs +0 -24
  5. package/dist/events.server.js +0 -16
  6. package/dist/events.server.mjs +0 -16
  7. package/dist/files.server.js +0 -8
  8. package/dist/files.server.mjs +0 -8
  9. package/dist/gallery.server.js +0 -8
  10. package/dist/gallery.server.mjs +0 -8
  11. package/dist/main-Bw0PvTs-.mjs +13616 -0
  12. package/dist/main-D8gNZLSa.js +92 -0
  13. package/dist/main.css +1 -1
  14. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
  15. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +180 -180
  16. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -1
  17. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +5 -5
  18. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  19. package/dist/node_modules/@noble/hashes/esm/_u64.js +16 -61
  20. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -1
  21. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +9 -10
  22. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +1 -1
  23. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +1 -1
  24. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  25. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +9 -9
  26. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  27. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +33 -33
  28. package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -1
  29. package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +24 -24
  30. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
  31. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +30 -30
  32. package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -1
  33. package/dist/node_modules/web3-validator/lib/esm/validation/string.js +9 -9
  34. package/dist/organizations.server.js +0 -32
  35. package/dist/organizations.server.mjs +0 -32
  36. package/dist/products.server.js +0 -20
  37. package/dist/products.server.mjs +0 -20
  38. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  39. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3046 -2899
  40. package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
  41. package/dist/prometheus-framework/node_modules/axios/lib/axios.js +1 -2
  42. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
  43. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +1 -2
  44. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
  45. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +18 -19
  46. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -2
  47. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +66 -67
  48. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  49. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +38 -39
  50. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -1
  51. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -2
  52. package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.cjs +1 -1
  53. package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.js +13 -16
  54. package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -1
  55. package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.js +13 -16
  56. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.cjs +1 -1
  57. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.js +45 -51
  58. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/PhoneNumber.cjs +1 -1
  59. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/PhoneNumber.js +56 -56
  60. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.cjs +2 -2
  61. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.js +14 -14
  62. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.cjs +1 -1
  63. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +8 -16
  64. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.cjs +1 -1
  65. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +4 -6
  66. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.cjs +1 -1
  67. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +5 -9
  68. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.cjs +2 -2
  69. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +4 -4
  70. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
  71. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +35 -35
  72. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
  73. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +13 -13
  74. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +2 -2
  75. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +9 -16
  76. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  77. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  78. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  80. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
  82. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  83. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
  84. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
  86. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  87. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
  88. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  90. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  91. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  92. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +29 -29
  94. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +31 -31
  96. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +15 -14
  100. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  104. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  106. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  107. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  108. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  109. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  110. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  112. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +10 -10
  118. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +15 -15
  120. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  121. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -5
  122. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  124. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
  134. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  136. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +20 -20
  138. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +19 -19
  142. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  150. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +11 -11
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +20 -20
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
  172. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  182. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  184. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  188. package/dist/prometheus-framework.cjs.js +1 -1
  189. package/dist/prometheus-framework.es.js +1 -1
  190. package/dist/reports.server.js +0 -8
  191. package/dist/reports.server.mjs +0 -8
  192. package/dist/style.css +1 -1
  193. package/dist/users.server.js +0 -8
  194. package/dist/users.server.mjs +0 -8
  195. package/dist/wallet.server.js +0 -4
  196. package/dist/wallet.server.mjs +0 -4
  197. package/dist/web-CciQvENI.js +1 -0
  198. package/dist/web-nVxTNRH4.mjs +54 -0
  199. package/package.json +1 -1
@@ -262,14 +262,6 @@ var auth_routes = function(app, db, origins) {
262
262
  const controller = controllerFactory$1(db);
263
263
  const controllerTwofa = controllerFactoryTwofa();
264
264
  const { verifySignUp, verifyUser } = middlewareFactory$1(db);
265
- app.use(function(req, res, next) {
266
- const origin = req.headers.origin;
267
- if (origins.includes(origin)) {
268
- res.setHeader("Access-Control-Allow-Origin", origin);
269
- }
270
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
271
- next();
272
- });
273
265
  app.post(
274
266
  "/api/auth/signup",
275
267
  [
@@ -299,14 +291,6 @@ const middlewareFactory = index.server;
299
291
  var twofa_routes = function(app, db) {
300
292
  const controller = controllerFactory();
301
293
  const { verifySignUp, verifyUser } = middlewareFactory(db);
302
- app.use(function(req, res, next) {
303
- res.header(
304
- "Access-Control-Allow-Headers",
305
- "Access-Control-Allow-Origin",
306
- "x-access-token, Origin, Content-Type, Accept"
307
- );
308
- next();
309
- });
310
294
  app.post(
311
295
  "/api/twofa/sendcode",
312
296
  [
@@ -261,14 +261,6 @@ var auth_routes = function(app, db, origins) {
261
261
  const controller = controllerFactory$1(db);
262
262
  const controllerTwofa = controllerFactoryTwofa();
263
263
  const { verifySignUp, verifyUser } = middlewareFactory$1(db);
264
- app.use(function(req, res, next) {
265
- const origin = req.headers.origin;
266
- if (origins.includes(origin)) {
267
- res.setHeader("Access-Control-Allow-Origin", origin);
268
- }
269
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
270
- next();
271
- });
272
264
  app.post(
273
265
  "/api/auth/signup",
274
266
  [
@@ -298,14 +290,6 @@ const middlewareFactory = server;
298
290
  var twofa_routes = function(app, db) {
299
291
  const controller = controllerFactory();
300
292
  const { verifySignUp, verifyUser } = middlewareFactory(db);
301
- app.use(function(req, res, next) {
302
- res.header(
303
- "Access-Control-Allow-Headers",
304
- "Access-Control-Allow-Origin",
305
- "x-access-token, Origin, Content-Type, Accept"
306
- );
307
- next();
308
- });
309
293
  app.post(
310
294
  "/api/twofa/sendcode",
311
295
  [
@@ -529,14 +529,6 @@ var blog_routes = function(app, db, origins) {
529
529
  const controller = controllerFactory$2(db);
530
530
  middlewareFactoryGlobal(db);
531
531
  const { verifyBlogpost: verifyBlogpost2 } = middlewareFactoryCommunity(db);
532
- app.use(function(req, res, next) {
533
- const origin = req.headers.origin;
534
- if (origins.includes(origin)) {
535
- res.setHeader("Access-Control-Allow-Origin", origin);
536
- }
537
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
538
- next();
539
- });
540
532
  app.get(
541
533
  "/api/blog/read",
542
534
  controller.read
@@ -565,14 +557,6 @@ var blog_routes = function(app, db, origins) {
565
557
  const controllerFactory$1 = comments_controller;
566
558
  var comments_routes = function(app, db) {
567
559
  const controller = controllerFactory$1(db);
568
- app.use(function(req, res, next) {
569
- res.header(
570
- "Access-Control-Allow-Headers",
571
- "Access-Control-Allow-Origin",
572
- "x-access-token, Origin, Content-Type, Accept"
573
- );
574
- next();
575
- });
576
560
  app.get(
577
561
  "/comments/read",
578
562
  controller.read
@@ -593,14 +577,6 @@ var comments_routes = function(app, db) {
593
577
  const controllerFactory = reactions_controller;
594
578
  var reactions_routes = function(app, db) {
595
579
  const controller = controllerFactory(db);
596
- app.use(function(req, res, next) {
597
- res.header(
598
- "Access-Control-Allow-Headers",
599
- "Access-Control-Allow-Origin",
600
- "x-access-token, Origin, Content-Type, Accept"
601
- );
602
- next();
603
- });
604
580
  app.get(
605
581
  "/api/reactions/read",
606
582
  controller.read
@@ -528,14 +528,6 @@ var blog_routes = function(app, db, origins) {
528
528
  const controller = controllerFactory$2(db);
529
529
  middlewareFactoryGlobal(db);
530
530
  const { verifyBlogpost: verifyBlogpost2 } = middlewareFactoryCommunity(db);
531
- app.use(function(req, res, next) {
532
- const origin = req.headers.origin;
533
- if (origins.includes(origin)) {
534
- res.setHeader("Access-Control-Allow-Origin", origin);
535
- }
536
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
537
- next();
538
- });
539
531
  app.get(
540
532
  "/api/blog/read",
541
533
  controller.read
@@ -564,14 +556,6 @@ var blog_routes = function(app, db, origins) {
564
556
  const controllerFactory$1 = comments_controller;
565
557
  var comments_routes = function(app, db) {
566
558
  const controller = controllerFactory$1(db);
567
- app.use(function(req, res, next) {
568
- res.header(
569
- "Access-Control-Allow-Headers",
570
- "Access-Control-Allow-Origin",
571
- "x-access-token, Origin, Content-Type, Accept"
572
- );
573
- next();
574
- });
575
559
  app.get(
576
560
  "/comments/read",
577
561
  controller.read
@@ -592,14 +576,6 @@ var comments_routes = function(app, db) {
592
576
  const controllerFactory = reactions_controller;
593
577
  var reactions_routes = function(app, db) {
594
578
  const controller = controllerFactory(db);
595
- app.use(function(req, res, next) {
596
- res.header(
597
- "Access-Control-Allow-Headers",
598
- "Access-Control-Allow-Origin",
599
- "x-access-token, Origin, Content-Type, Accept"
600
- );
601
- next();
602
- });
603
579
  app.get(
604
580
  "/api/reactions/read",
605
581
  controller.read
@@ -636,14 +636,6 @@ var events_routes = function(app, db, origins) {
636
636
  const controller = controllerFactory$1(db);
637
637
  middlewareFactoryGlobal(db);
638
638
  const { verifyEvent: verifyEvent2 } = middlewareFactoryEvents(db);
639
- app.use(function(req, res, next) {
640
- const origin = req.headers.origin;
641
- if (origins.includes(origin)) {
642
- res.setHeader("Access-Control-Allow-Origin", origin);
643
- }
644
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
645
- next();
646
- });
647
639
  app.get(
648
640
  "/api/events/read",
649
641
  controller.read
@@ -673,14 +665,6 @@ const events_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs
673
665
  const controllerFactory = tickets_controller.tickets_controller;
674
666
  var tickets_routes = function(app, db, origins, publicPath) {
675
667
  const controller = controllerFactory(db, publicPath);
676
- app.use(function(req, res, next) {
677
- const origin = req.headers.origin;
678
- if (origins.includes(origin)) {
679
- res.setHeader("Access-Control-Allow-Origin", origin);
680
- }
681
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
682
- next();
683
- });
684
668
  app.get(
685
669
  "/api/tickets",
686
670
  controller.read
@@ -634,14 +634,6 @@ var events_routes = function(app, db, origins) {
634
634
  const controller = controllerFactory$1(db);
635
635
  middlewareFactoryGlobal(db);
636
636
  const { verifyEvent: verifyEvent2 } = middlewareFactoryEvents(db);
637
- app.use(function(req, res, next) {
638
- const origin = req.headers.origin;
639
- if (origins.includes(origin)) {
640
- res.setHeader("Access-Control-Allow-Origin", origin);
641
- }
642
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
643
- next();
644
- });
645
637
  app.get(
646
638
  "/api/events/read",
647
639
  controller.read
@@ -671,14 +663,6 @@ const events_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(events_routes);
671
663
  const controllerFactory = tickets_controller;
672
664
  var tickets_routes = function(app, db, origins, publicPath) {
673
665
  const controller = controllerFactory(db, publicPath);
674
- app.use(function(req, res, next) {
675
- const origin = req.headers.origin;
676
- if (origins.includes(origin)) {
677
- res.setHeader("Access-Control-Allow-Origin", origin);
678
- }
679
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
680
- next();
681
- });
682
666
  app.get(
683
667
  "/api/tickets",
684
668
  controller.read
@@ -180,14 +180,6 @@ var files_routes = function(app, db, origins, publicPath) {
180
180
  const controller = controllerFactory(db, publicPath);
181
181
  middlewareFactoryGlobal(db);
182
182
  const { middlewareBusboy: middlewareBusboy2 } = middlewareFactoryFiles(db, publicPath);
183
- app.use(function(req, res, next) {
184
- const origin = req.headers.origin;
185
- if (origins.includes(origin)) {
186
- res.setHeader("Access-Control-Allow-Origin", origin);
187
- }
188
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
189
- next();
190
- });
191
183
  app.post(
192
184
  "/api/upload/image",
193
185
  [
@@ -179,14 +179,6 @@ var files_routes = function(app, db, origins, publicPath) {
179
179
  const controller = controllerFactory(db, publicPath);
180
180
  middlewareFactoryGlobal(db);
181
181
  const { middlewareBusboy: middlewareBusboy2 } = middlewareFactoryFiles(db, publicPath);
182
- app.use(function(req, res, next) {
183
- const origin = req.headers.origin;
184
- if (origins.includes(origin)) {
185
- res.setHeader("Access-Control-Allow-Origin", origin);
186
- }
187
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
188
- next();
189
- });
190
182
  app.post(
191
183
  "/api/upload/image",
192
184
  [
@@ -90,14 +90,6 @@ const middlewareFactoryGlobal = index.server;
90
90
  var gallery_routes = function(app, db, origins) {
91
91
  const controller = controllerFactory(db);
92
92
  const { authJwt } = middlewareFactoryGlobal(db);
93
- app.use(function(req, res, next) {
94
- const origin = req.headers.origin;
95
- if (origins.includes(origin)) {
96
- res.setHeader("Access-Control-Allow-Origin", origin);
97
- }
98
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
99
- next();
100
- });
101
93
  app.get(
102
94
  "/api/gallery",
103
95
  controller.read
@@ -89,14 +89,6 @@ const middlewareFactoryGlobal = server;
89
89
  var gallery_routes = function(app, db, origins) {
90
90
  const controller = controllerFactory(db);
91
91
  const { authJwt } = middlewareFactoryGlobal(db);
92
- app.use(function(req, res, next) {
93
- const origin = req.headers.origin;
94
- if (origins.includes(origin)) {
95
- res.setHeader("Access-Control-Allow-Origin", origin);
96
- }
97
- res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
98
- next();
99
- });
100
92
  app.get(
101
93
  "/api/gallery",
102
94
  controller.read