remove health

This commit is contained in:
2025-07-21 22:12:54 +08:00
parent 497a6200aa
commit 0fe89e1fbb
2 changed files with 0 additions and 15 deletions

View File

@@ -47,9 +47,6 @@ app.use(express.urlencoded({ extended: true }));
// Request logging
app.use((req, res, next) => {
if (req.path === '/health') {
return next();
}
logger.info(`${req.method} ${req.path}`, {
ip: req.ip,
userAgent: req.get('User-Agent')
@@ -57,15 +54,6 @@ app.use((req, res, next) => {
next();
});
// Health check endpoint
app.get('/health', (req, res) => {
res.json({
status: 'OK',
timestamp: new Date().toISOString(),
uptime: process.uptime()
});
});
// API routes
app.use('/api/auth', authRoutes);
app.use('/api/users', userRoutes);