protect email configuration endpoint
This commit is contained in:
@@ -1486,6 +1486,8 @@ const server = http.createServer(async (req, res) => {
|
||||
|
||||
// --- E-posta bildirimi (Resend) ---
|
||||
if (url.pathname === '/api/notify/email/config') {
|
||||
const user = userFromAuthHeader(req.headers['authorization']);
|
||||
if (!user) return json(res, 401, { success: false, error: 'oturum gerekli' });
|
||||
// 'from' gizli bilgi değil; hangi adresin kullanıldığını görünür kılar
|
||||
return json(res, 200, {
|
||||
success: true,
|
||||
|
||||
Reference in New Issue
Block a user