the beginning of the idiots
This commit is contained in:
23
qwen/nodejs/routes/jobProvider.js
Normal file
23
qwen/nodejs/routes/jobProvider.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user