Update
This commit is contained in:
parent
80b0ea401b
commit
c620e19449
23 changed files with 919 additions and 0 deletions
22
app-backend/routes/video.routes.js
Normal file
22
app-backend/routes/video.routes.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
const videos = require("../controllers/video.controller");
|
||||
module.exports = app => {
|
||||
let router = require("express").Router();
|
||||
|
||||
router.post("/video/search", videos.search);
|
||||
|
||||
router.post("/video/history", videos.history);
|
||||
|
||||
router.post("/video/create", videos.create);
|
||||
|
||||
router.get("/video/findAll", videos.findAll);
|
||||
|
||||
router.get("/video/findOne/:id", videos.findOne);
|
||||
|
||||
router.put("/video/update/:id", videos.update);
|
||||
|
||||
router.delete("/video/delete/:id", videos.delete);
|
||||
|
||||
router.delete("/video/deleteAll", videos.deleteAll);
|
||||
|
||||
app.use('/api', router);
|
||||
};
|
||||
Reference in a new issue