const express = require('express');
const router = express.Router();
const { getDashboard, createJob, updateJob, deleteJob, getApplications, manageApplication } = require('../controllers/jobProviderController');

// Get job provider dashboard
router.get('/dashboard', getDashboard);

// Create a new job
router.post('/jobs', createJob);

// Update a job
router.put('/jobs/:jobId', updateJob);

// Delete a job
router.delete('/jobs/:jobId', deleteJob);

// Get applications for job provider's jobs
router.get('/applications', getApplications);

// Manage an application
router.put('/applications/:applicationId', manageApplication);

module.exports = router;