diff --git a/testapp/controllers/homeController.js b/testapp/controllers/homeController.js index ab24301..8a4ca31 100644 --- a/testapp/controllers/homeController.js +++ b/testapp/controllers/homeController.js @@ -18,14 +18,14 @@ export const renderHomePage = async (req, res) => { export const createRoom = async (req, res) => { try { // Extract values from request body - const { roomNamePrefix, expirationDate } = req.body + const { roomIdPrefix, expirationDate } = req.body // Request to create a new room const response = await fetch(`${process.env.OPENVIDU_MEET_URL}/rooms`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ - roomNamePrefix, + roomIdPrefix, expirationDate: new Date(expirationDate).getTime() }) }) diff --git a/testapp/views/home.mustache b/testapp/views/home.mustache index ca06802..5b359aa 100644 --- a/testapp/views/home.mustache +++ b/testapp/views/home.mustache @@ -27,7 +27,7 @@