From db1cbf655468913bffa931f51cc4d6bd7ed26012 Mon Sep 17 00:00:00 2001 From: primakov Date: Sat, 18 May 2024 11:39:16 +0300 Subject: [PATCH] add version to root --- server/root.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/root.js b/server/root.js index 9330a66..d0f9ba7 100644 --- a/server/root.js +++ b/server/root.js @@ -1,13 +1,14 @@ const router = require('express').Router() const fs = require('fs') const path = require('path') +const pkg = require('../package.json') const folderPath = path.resolve(__dirname, './routers') const folders = fs.readdirSync(folderPath) router.get('/', (req, res) => { res.send(` -

multy stub is working

+

multy stub is working v${pkg.version}