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

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