/**
 * @openapi
 * /api/subjects:
 *   get:
 *     tags: [Subjects]
 *     summary: List subjects (tenant-scoped)
 *     description: Requires READ_SUBJECTS.
 *     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: [Subjects]
 *     summary: Create a subjects record
 *     description: Requires CREATE_SUBJECTS.
 *     responses:
 *       200: { description: Created. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/subjects/count:
 *   get:
 *     tags: [Subjects]
 *     summary: Count subjects
 *     description: Requires READ_SUBJECTS.
 *     responses:
 *       200: { description: Count. }
 * /api/subjects/autocomplete:
 *   get:
 *     tags: [Subjects]
 *     summary: Autocomplete subjects
 *     description: Requires READ_SUBJECTS.
 *     responses:
 *       200: { description: Autocomplete results. }
 * /api/subjects/bulk-import:
 *   post:
 *     tags: [Subjects]
 *     summary: Bulk-import subjects from CSV
 *     description: Requires CREATE_SUBJECTS.
 *     responses:
 *       200: { description: Imported. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/subjects/deleteByIds:
 *   post:
 *     tags: [Subjects]
 *     summary: Delete multiple subjects records
 *     description: Requires DELETE_SUBJECTS.
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/subjects/{id}:
 *   get:
 *     tags: [Subjects]
 *     summary: Get a subjects record by id
 *     description: Requires READ_SUBJECTS.
 *     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: [Subjects]
 *     summary: Update a subjects record
 *     description: Requires UPDATE_SUBJECTS.
 *     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: [Subjects]
 *     summary: Delete a subjects record
 *     description: Requires DELETE_SUBJECTS.
 *     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/subjects.controller';
import { createCrudRouter } from '@/api/http/crud-router';

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