-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from GoSTEAN/serverSetup
feat: Setup a backend routes for Land event
- Loading branch information
Showing
3 changed files
with
181 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
// const express = require('express'); | ||
// const router = express.Router(); | ||
// const landController = require('../controllers/landController'); | ||
const express = require('express'); | ||
const router = express.Router(); | ||
const landController = require('../controllers/landController'); | ||
|
||
// // Remove any authentication middleware for these routes | ||
// router.post('/register', landController.registerLand); | ||
// router.get('/', (req, res, next) => { | ||
// console.log('Received GET request for all lands'); | ||
// landController.getAllLands(req, res, next); | ||
// }); | ||
// router.get('/:id', landController.getLandById); | ||
// router.get('/:id/verify', landController.verifyLand); | ||
// Base land routes | ||
router.get('/', landController.getAllLands); | ||
router.get('/inspectors', landController.getInspectors); | ||
router.get('/approved', landController.getApprovedLands); | ||
router.get('/transfer-history/:landId', landController.getTransferHistory); | ||
|
||
// //Todo: docs, api | ||
// Land verification and details | ||
router.get('/:id', landController.getLandById); | ||
router.get('/:id/verify', landController.verifyLandStatus); | ||
|
||
|
||
// module.exports = router; | ||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters