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) => {
|
||||
res.json({
|
||||
success: true,
|
||||
name: 'maqt-backend',
|
||||
version: '1.1.0',
|
||||
buildTime: new Date().toISOString(),
|
||||
commit: 'e249aa5',
|
||||
env: process.env.NODE_ENV || 'development',
|
||||
uptime: process.uptime(),
|
||||
});
|
||||
res.json({ version: 'd823421' });
|
||||
});
|
||||
|
||||
app.use('/api', authRoutes);
|
||||
|
||||
Reference in New Issue
Block a user