Query hash value from cloud code

hello

i am a first time user of cloud code for my mobile game i want to retrieve the app version and the specific hash value from cloud code.

could someone who knows the syntax help translate my pseudo code into cloud code and also in unity whats the code to query and retrieve that ?

import express from 'express';

const app = express();

app.get('/hash', (req, res) => {
   if(req.query.version === '<app-version>') {
     res.send('<hash-value>');
     return;
   }
   res.send('Unknown version');
});

app.listen(4000, () => {
 console.log(`server running on port 4000`);
});

also do i understand the current pricing model correct

so 1 million invocations per month its free but if would have 2 million it would cost me 1.50 dollars ?

what is that Egress ? what does it mean ?

kind regards