// en server.js o crea src/routes/admin.debug.routes.js y móntalo
const express = require('express');
const { requireAuth } = require('./src/utils/jwt');
const requireAdmin = require('./src/middleware/requireAdmin');
app.get('/api/admin/_ping', requireAuth, requireAdmin(), (req, res) => {
  res.json({ ok: true, user: req.user });
});
