simplify /api/version to single field
This commit is contained in:
10
src/index.ts
10
src/index.ts
@@ -64,15 +64,7 @@ app.get('/api/activity/ping', (req, res) => {
|
|||||||
|
|
||||||
// 版本/健康检查 (用于验证部署)
|
// 版本/健康检查 (用于验证部署)
|
||||||
app.get('/api/version', (req, res) => {
|
app.get('/api/version', (req, res) => {
|
||||||
res.json({
|
res.json({ version: 'd823421' });
|
||||||
success: true,
|
|
||||||
name: 'maqt-backend',
|
|
||||||
version: '1.1.0',
|
|
||||||
buildTime: new Date().toISOString(),
|
|
||||||
commit: 'e249aa5',
|
|
||||||
env: process.env.NODE_ENV || 'development',
|
|
||||||
uptime: process.uptime(),
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use('/api', authRoutes);
|
app.use('/api', authRoutes);
|
||||||
|
|||||||
Reference in New Issue
Block a user