This repository has been archived on 2026-05-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
PolyNotFound/backend/app/routes/video.routes.js

22 lines
569 B
JavaScript

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);
};