"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const router = (0, express_1.Router)();
router.get('/', (req, res) => {
    res.json({
        success: true,
        message: 'Rezepte Klaus API is running!',
        timestamp: new Date().toISOString(),
        environment: process.env.NODE_ENV,
    });
});
router.get('/db', async (req, res) => {
    try {
        res.json({
            success: true,
            message: 'Database connection is healthy',
            timestamp: new Date().toISOString(),
        });
    }
    catch (error) {
        res.status(500).json({
            success: false,
            message: 'Database connection failed',
            error: error instanceof Error ? error.message : 'Unknown error',
        });
    }
});
exports.default = router;
//# sourceMappingURL=health.js.map