19 lines
455 B
JavaScript
19 lines
455 B
JavaScript
var express = require('express');
|
|
|
|
|
|
|
|
var router = express.Router();
|
|
var movieController = require('../controllers/movieController.js');
|
|
|
|
|
|
router.get('/', movieController.list);
|
|
//router.get('/publish', movieController.publish);
|
|
//router.get('/:id', movieController.show);
|
|
|
|
router.post('/', movieController.create);
|
|
|
|
//router.put('/:id', movieController.update);
|
|
|
|
//router.delete('/:id', movieController.remove);
|
|
|
|
module.exports = router; |