Skip to content

Commit 0c984ca

Browse files
committed
video content endpoints created
1 parent 279eb6a commit 0c984ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

models/Video.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const VideoSchema = new mongoose.Schema({
1919
type: String,
2020
},
2121
],
22-
imageScripts: [
22+
imagePrompts: [
2323
{
2424
type: String,
2525
},

routes/video-content.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
const express = require("express");
2-
const { createVideoContent } = require("../controllers/video-content");
2+
const {
3+
createVideoContent,
4+
getVideoContentByID,
5+
} = require("../controllers/video-content");
36

47
const router = express.Router();
58

69
router.route("/create-video-content").post(createVideoContent);
10+
router.route("/get-video-content/:videoID").get(getVideoContentByID);
711

812
module.exports = router;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy