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 I want the user to be able to paste the url: 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

const options = {
    hosts: {
        domain: '',
        muc: '', // FIXME: use XEP-0030
        focus: '',
    bosh: '', // FIXME: use xep-0156 for that
    // The name of client node advertised in XEP-0115 'c' stanza
    clientNode: ''

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){
app.get('/:room', function(req, res){

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!