feat: allow download of current project

This commit is contained in:
Carlos Valente
2024-10-03 22:26:59 +02:00
parent a08ea3fee9
commit ea5de337cf
3 changed files with 22 additions and 0 deletions
+2
View File
@@ -2,6 +2,7 @@ import express from 'express';
import {
createProjectFile,
currentProjectDownload,
deleteProjectFile,
duplicateProjectFile,
getInfo,
@@ -23,6 +24,7 @@ import {
export const router = express.Router();
router.get('/', currentProjectDownload);
router.post('/download', validateFilenameBody, projectDownload);
router.post('/upload', uploadProjectFile, postProjectFile);