breakhours-transform/router.js

17 lines
464 B
JavaScript
Raw Permalink Normal View History

2024-10-03 11:55:18 +00:00
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;