Commit 36758831 by Pragati Upadhyay

add test route

parent afce4d05
...@@ -159,6 +159,9 @@ module.exports.generateVideo = async function (req, res) { ...@@ -159,6 +159,9 @@ module.exports.generateVideo = async function (req, res) {
deleteFile(filesCreated) deleteFile(filesCreated)
} }
} }
module.exports.test= async function (req,res){
res.status(STATUS_CODE.OK).json({message: "Working"})
}
async function createAudio(audioList, audioPath) { async function createAudio(audioList, audioPath) {
let downloadAudioPromise = [] let downloadAudioPromise = []
......
...@@ -6,6 +6,8 @@ const { createDirectory } = require("../helper/utilities") ...@@ -6,6 +6,8 @@ const { createDirectory } = require("../helper/utilities")
const router = new require('express').Router() const router = new require('express').Router()
router.post("/generate", tutorShotController.generateVideo) router.post("/generate", tutorShotController.generateVideo)
router.get("/test", tutorShotController.test)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment