feat: add new file

This commit is contained in:
Daniel
2026-03-01 19:23:48 +08:00
parent d705fd6c83
commit c07fc681dd
24 changed files with 2711 additions and 166 deletions

15
server/routes.js Normal file
View File

@@ -0,0 +1,15 @@
const express = require('express')
const { getSituation } = require('./situationData')
const router = express.Router()
router.get('/situation', (req, res) => {
try {
res.json(getSituation())
} catch (err) {
console.error(err)
res.status(500).json({ error: err.message })
}
})
module.exports = router