/**
 * @openapi
 * /api/campuses:
 *   get:
 *     tags: [Campuses]
 *     summary: List campuses (tenant-scoped)
 *     description: Requires READ_CAMPUSES.
 *     responses:
 *       200:
 *         description: List payload.
 *         content:
 *           application/json:
 *             schema: { $ref: '#/components/schemas/ListResponse' }
 *       401: { $ref: '#/components/responses/UnauthorizedError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *   post:
 *     tags: [Campuses]
 *     summary: Create a campuses record
 *     description: Requires CREATE_CAMPUSES.
 *     responses:
 *       200: { description: Created. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/campuses/count:
 *   get:
 *     tags: [Campuses]
 *     summary: Count campuses
 *     description: Requires READ_CAMPUSES.
 *     responses:
 *       200: { description: Count. }
 * /api/campuses/autocomplete:
 *   get:
 *     tags: [Campuses]
 *     summary: Autocomplete campuses
 *     description: Requires READ_CAMPUSES.
 *     responses:
 *       200: { description: Autocomplete results. }
 * /api/campuses/bulk-import:
 *   post:
 *     tags: [Campuses]
 *     summary: Bulk-import campuses from CSV
 *     description: Requires CREATE_CAMPUSES.
 *     responses:
 *       200: { description: Imported. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/campuses/deleteByIds:
 *   post:
 *     tags: [Campuses]
 *     summary: Delete multiple campuses records
 *     description: Requires DELETE_CAMPUSES.
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/campuses/{id}:
 *   get:
 *     tags: [Campuses]
 *     summary: Get a campuses record by id
 *     description: Requires READ_CAMPUSES.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: The record. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *       404: { description: Not found. }
 *   put:
 *     tags: [Campuses]
 *     summary: Update a campuses record
 *     description: Requires UPDATE_CAMPUSES.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Updated. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *   delete:
 *     tags: [Campuses]
 *     summary: Delete a campuses record
 *     description: Requires DELETE_CAMPUSES.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 */
import controller from '@/api/controllers/campuses.controller';
import { createCrudRouter } from '@/api/http/crud-router';

export default createCrudRouter(controller, { permission: 'campuses' });
