// hDiyanetProxy - Eid Controller const EidModel = require('../models/EidTime'); const EidController = { // Şehre göre bayram vakitlerini getir async getByCityId(req, res) { try { const { cityId } = req.query; if (!cityId) { return res.status(400).json({ error: 'cityId parametresi gerekli' }); } const times = await EidModel.getByCityId(parseInt(cityId)); res.json(times); } catch (err) { console.error('Eid hatası:', err); res.status(500).json({ error: 'Sunucu hatası' }); } } }; module.exports = EidController;