Redirect to room in web-app created using lib-jitsi-meet

I am working on a video conferencing web-app project. I decided to use lib-jitsi-meet, as I wanted to create a custom UI.

Let us say my app is deployed at https://mydomain.com. I want the user to be able to paste the url: https://mydomain.com/qwertyuiop and get redirected to a new room. Only people who go to this url should be able to then join this user’s room.

For now I am at a very early stage. I have just created a basic nodejs + express server for serving my static files (which includes example.js for getting the calls connected)

This is the config i am using for options in example.js. As you can see, I have set the domain property to beta.meet.jit.si.

const options = {
    hosts: {
        domain: 'beta.meet.jit.si',
        muc: 'conference.beta.meet.jit.si', // FIXME: use XEP-0030
        focus: 'focus.beta.meet.jit.si',
    },
    bosh: 'https://beta.meet.jit.si/http-bind', // FIXME: use xep-0156 for that
    // The name of client node advertised in XEP-0115 'c' stanza
    clientNode: 'http://jitsi.org/jitsimeet'
};

I run the following snippet on my nodejs server to redirect any user coming to my server url to a randomly generated room id (generated by uuidv4()):

app.get("/", function(req,res){
    res.redirect("/"+uuidv4())
})
app.get('/:room', function(req, res){
    res.render('meet');
})

This does redirect the user to the random url, however, when any other user joins with different url, they all end up on the same room.
My query is, how do I achieve this functionality where different urls lead to different rooms. I believe I have to pass this randomly generated string to some lib-jitsi-meet object so that the room feature can work properly. Please give me some insights. Thanks!