maj du frontend
This commit is contained in:
parent
0585ff56fd
commit
1c8d960b52
8 changed files with 281 additions and 26 deletions
|
@ -1,8 +1,12 @@
|
|||
import express from 'express';
|
||||
import { searchLocalJobOffers } from '../controllers/jobSearchController';
|
||||
import { Router } from 'express';
|
||||
import { searchLocalJobOffers, getJobOfferById } from '../controllers/jobSearchController';
|
||||
|
||||
const router = express.Router();
|
||||
const router = Router();
|
||||
|
||||
// Route pour la recherche d'offres (existante)
|
||||
router.get('/api/jobs', searchLocalJobOffers);
|
||||
|
||||
// Nouvelle route pour récupérer une offre par ID
|
||||
router.get('/api/jobs/:id', getJobOfferById);
|
||||
|
||||
export default router;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue