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;