This commit is contained in:
split / May 2023-03-22 23:40:37 -07:00
parent 9253228567
commit e75b8fb3aa

View file

@ -92,7 +92,7 @@ app.post("/upload",multerSetup.single('file'),async (req,res) => {
}
})
app.post("/clone",(req,res) => {
app.post("/clone", bodyParser.json({type: ["text/plain","application/json"]}) ,(req,res) => {
try {
axios.get(req.body.url,{responseType:"arraybuffer"}).then((data:AxiosResponse) => {