breakhours-transform/router.js
2024-10-03 13:55:18 +02:00

17 lines
464 B
JavaScript

import express from 'express';
import { getJobs, processAndUpdateJobs, removePauzeFromJobs } from './api/jobs.js';
import { getShifts, updateShifts } from './api/shifts.js';
const router = express.Router();
// Jobs
router.get('/jobs', getJobs);
router.post('/jobs/process', processAndUpdateJobs);
router.post('/jobs/remove-pauze', removePauzeFromJobs);
// Shifts
router.post('/shifts', getShifts);
router.put('/shifts', updateShifts);
export default router;