| @@ -11,8 +11,9 @@ | ||
| 11 | 11 | $router->get('/', 'CalendarController@getAllCalendars')->meta('calendar_type', 'booking'); |
| 12 | 12 | |
| 13 | 13 | $router->post('/', 'CalendarController@createCalendar'); |
| 14 | 14 | $router->post('check-slug', 'CalendarController@checkSlug'); |
| 15 | + $router->get('location-fields', 'CalendarController@getNewEventLocationFields'); | |
| 15 | 16 | |
| 16 | 17 | $router->get('/{id}', 'CalendarController@getCalendar')->int('id'); |
| 17 | 18 | $router->post('/{id}', 'CalendarController@updateCalendar')->int('id'); |
| 18 | 19 | $router->delete('/{id}', 'CalendarController@deleteCalendar')->int('id'); |
| @@ -64,8 +65,10 @@ | ||
| 64 | 65 | $router->get('/', 'BookingController@getBookings'); |
| 65 | 66 | $router->get('event/{event_id}', 'BookingController@getEvent')->int('event_id'); |
| 66 | 67 | $router->get('slots/{event_id}', 'BookingController@getSlots')->int('event_id'); |
| 67 | 68 | $router->post('create/{event_id}', 'BookingController@createBooking')->int('event_id'); |
| 69 | + $router->get('reschedule/{event_id}/{id}/slots', 'BookingController@getRescheduleSlots')->int('event_id')->int('id'); | |
| 70 | + $router->post('reschedule/{event_id}/{id}', 'BookingController@rescheduleBooking')->int('event_id')->int('id'); | |
| 68 | 71 | }); |
| 69 | 72 | |
| 70 | 73 | $router->prefix('schedules')->withPolicy('MeetingPolicy')->group(function ($router) { |
| 71 | 74 | $router->get('/', 'SchedulesController@index'); // Need to check permission on the controller method |
| @@ -101,8 +104,9 @@ | ||
| 101 | 104 | $router->post('/global-modules', 'SettingsController@updateGlobalModules'); |
| 102 | 105 | $router->get('/pages', 'SettingsController@getPages'); |
| 103 | 106 | $router->post('/addons-settings', 'SettingsController@saveAddonsSettings'); |
| 104 | 107 | $router->post('/install-plugin', 'SettingsController@installPlugin'); |
| 108 | + $router->post('/optin', 'SettingsController@updateOptin'); | |
| 105 | 109 | |
| 106 | 110 | // MCP server settings — see docs/mcp-server-spec.md. |
| 107 | 111 | $router->get('/mcp', 'McpController@getSettings'); |
| 108 | 112 | $router->post('/mcp', 'McpController@updateSettings'); |