main
| Line | |
|---|
| 1 | const express = require('express');
|
|---|
| 2 | const router = express.Router();
|
|---|
| 3 | const buildingController = require('../controllers/buildingController');
|
|---|
| 4 | const appointmentController = require('../controllers/appointmentController');
|
|---|
| 5 |
|
|---|
| 6 | router.get('/buildings', buildingController.listBuildings);
|
|---|
| 7 | router.get('/buildings/:building_id', buildingController.buildingDetail);
|
|---|
| 8 | router.get('/floors/:floor_id/units', buildingController.floorUnits);
|
|---|
| 9 | router.get('/units/:unit_id', buildingController.unitDetail);
|
|---|
| 10 |
|
|---|
| 11 | router.get('/units/:unit_id/book', appointmentController.bookAppointmentForm);
|
|---|
| 12 | router.post('/units/:unit_id/book', appointmentController.bookAppointmentSubmit);
|
|---|
| 13 | router.get('/appointments/:id/confirmation', appointmentController.appointmentConfirmation);
|
|---|
| 14 |
|
|---|
| 15 | module.exports = router; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.