import express from 'express';
import { wrapAsync } from '@/api/http/request';
import * as public_campuses from '@/api/controllers/public_campuses.controller';

const router = express.Router();

/**
 * @openapi
 * /api/public/campuses:
 *   get:
 *     tags: [Public]
 *     summary: List active campuses (public-by-design)
 *     description: Unauthenticated; exposes only non-sensitive campus catalog data.
 *     security: []
 *     responses:
 *       200:
 *         description: Active campuses.
 *         content:
 *           application/json:
 *             schema: { $ref: '#/components/schemas/ListResponse' }
 */
router.get('/', wrapAsync(public_campuses.listActive));

export default router;
