-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.js
22 lines (17 loc) · 906 Bytes
/
routes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const {
Router
} = require('express');
const SearchController = require('./src/app/controllers/searchController')
const bussinesController = require('./src/app/controllers/bussinesController');
const RejectController = require('./src/app/controllers/RejectionController');
const ApprovalController = require('./src/app/controllers/EntrevistController');
const routes = Router();
routes.get('/search/:name', SearchController.index);
routes.get('/searchvacancies/:title', SearchController.store);
routes.get('/searchbussines', SearchController.buss);
routes.get('/searchcourses/:name', SearchController.class);
routes.get('/bussinesregister', bussinesController.index);
routes.post('/bussinesregister', bussinesController.store);
routes.post('/bookings/:booking_id/approvals', ApprovalController.store);
routes.post('/bookings/:booking_id/rejectins', RejectController.store);
module.exports = routes;