Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
begenieus-jobs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ramdayal Munda
begenieus-jobs
Commits
36758831
Commit
36758831
authored
May 08, 2024
by
Pragati Upadhyay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test route
parent
afce4d05
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
tutor-shot.js
controller/tutor-shot.js
+3
-0
tutor-shot.js
routes/tutor-shot.js
+2
-0
No files found.
controller/tutor-shot.js
View file @
36758831
...
@@ -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
=
[]
...
...
routes/tutor-shot.js
View file @
36758831
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment