nodebb-plugin-equipment-calendar 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js
CHANGED
|
@@ -583,8 +583,9 @@ plugin.init = async function (params) {
|
|
|
583
583
|
router.post('/admin/plugins/equipment-calendar/reservations/:rid/delete', middleware.applyCSRF, handleAdminDelete);
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
//
|
|
587
|
-
|
|
586
|
+
// Public route
|
|
587
|
+
router.get('/calendar', middleware.buildHeader, renderCalendarPage);
|
|
588
|
+
router.get('/api/calendar', middleware.buildHeader, renderCalendarPage);
|
|
588
589
|
|
|
589
590
|
|
|
590
591
|
// To verify webhook signature we need raw body; add a rawBody collector for this route only
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
|
-
<form id="ec-create-form" method="post" action="
|
|
25
|
+
<form id="ec-create-form" method="post" action="/equipment/reservations/create">
|
|
26
26
|
<div class="modal-body">
|
|
27
27
|
<input type="hidden" name="_csrf" value="{config.csrf_token}">
|
|
28
28
|
<input type="hidden" id="ec-start-ms" name="startMs" value="0">
|