31 lines
523 B
JavaScript
31 lines
523 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
const rawCameraDataController = require('../controllers/rawCameraDataController.js');
|
|
|
|
/*
|
|
* GET
|
|
*/
|
|
router.get('/', rawCameraDataController.list);
|
|
|
|
/*
|
|
* GET
|
|
*/
|
|
router.get('/:id', rawCameraDataController.show);
|
|
|
|
/*
|
|
* POST
|
|
*/
|
|
router.post('/', rawCameraDataController.create);
|
|
|
|
/*
|
|
* PUT
|
|
*/
|
|
//router.put('/:id', rawCameraDataController.update);
|
|
|
|
/*
|
|
* DELETE
|
|
*/
|
|
router.delete('/delete/:id', rawCameraDataController.remove);
|
|
|
|
module.exports = router;
|