import { Router } from 'express';
import * as companyProfileController from '../controllers/companyProfile.controller.js';
import { authenticate, requirePermission } from '../middleware/auth.js';

const router = Router();

router.get('/', authenticate, requirePermission('settings:read'), companyProfileController.getProfile);
router.put('/', authenticate, requirePermission('settings:update'), companyProfileController.updateProfile);

export default router;
