source: src/routes/clientRoutes.js@ 7517a3a

main
Last change on this file since 7517a3a was 7517a3a, checked in by Luka Krstikj <luka.krstik@…>, 21 hours ago

init

  • Property mode set to 100644
File size: 768 bytes
RevLine 
[7517a3a]1const express = require('express');
2const router = express.Router();
3const buildingController = require('../controllers/buildingController');
4const appointmentController = require('../controllers/appointmentController');
5
6router.get('/buildings', buildingController.listBuildings);
7router.get('/buildings/:building_id', buildingController.buildingDetail);
8router.get('/floors/:floor_id/units', buildingController.floorUnits);
9router.get('/units/:unit_id', buildingController.unitDetail);
10
11router.get('/units/:unit_id/book', appointmentController.bookAppointmentForm);
12router.post('/units/:unit_id/book', appointmentController.bookAppointmentSubmit);
13router.get('/appointments/:id/confirmation', appointmentController.appointmentConfirmation);
14
15module.exports = router;
Note: See TracBrowser for help on using the repository browser.