const express = require("express");
const router = express.Router();
const absenceClarificationService = require("./absenceClarification.service");
const authorize = require("../../../../middlewares/authorize-sapps");

router.post("/", authorize(), getAll);

module.exports = router;

function getAll(req, res, next) {
	absenceClarificationService
		.getAll(req.body)
		.then((result) => res.json(result))
		.catch(next);
}
