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
|
| Rev | Line | |
|---|
| [7517a3a] | 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.