Merge branch 'staging' into instruct-rework

This commit is contained in:
Cohee
2024-03-28 01:34:04 +02:00
6 changed files with 43 additions and 15 deletions

View File

@ -1008,7 +1008,7 @@ router.post('/duplicate', jsonParser, async function (request, response) {
fs.copyFileSync(filename, newFilename);
console.log(`${filename} was copied to ${newFilename}`);
response.sendStatus(200);
response.send({ path: path.parse(newFilename).base });
}
catch (error) {
console.error(error);