change uuid version

This commit is contained in:
counterweight 2025-02-06 19:26:07 +01:00
parent e57ab407a5
commit 2453e72359
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 12 additions and 12 deletions

View file

@ -1,11 +1,15 @@
const express = require('express');
const app = express();
const port = 3000;
const uuid = require('uuid');
app.set('view engine', 'ejs');
app.set('views', './views');
app.get('/', (req, res) => {
const requestUuid = uuid.v7();
console.log(requestUuid); // just to see the generated UUID
res.render('index');
});