personal_website/routes/api/mediaRouter.js
2023-08-10 15:05:50 +02:00

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;