11 lines
299 B
JavaScript
11 lines
299 B
JavaScript
var express = require('express');
|
|
var router = express.Router();
|
|
var mediaController = require('../../controllers/mediaController.js');
|
|
|
|
router.get('/', mediaController.list);
|
|
|
|
router.post('/', mediaController.create);
|
|
|
|
router.delete('/', mediaController.remove);
|
|
|
|
module.exports = router; |