update send version

This commit is contained in:
NekoVari 2023-11-12 22:17:57 +07:00
parent d5c994983d
commit 6931a29822

View file

@ -8,6 +8,11 @@ app.use(express.json());
app.use(cors()); app.use(cors());
app.use('/api/users', require('./routes/userRoute')); app.use('/api/users', require('./routes/userRoute'));
app.get('/', function(req, res) {
res.json({
version: DATE-VERSION
});
});
app.listen(process.env.PORT, () => { app.listen(process.env.PORT, () => {
console.log(`server's running on port ${process.env.PORT}`); console.log(`server's running on port ${process.env.PORT}`);