merge with main

This commit is contained in:
JBB0807 2025-05-02 12:41:41 -07:00
parent 9149bba868
commit 9b7e8ab276
10 changed files with 434 additions and 54 deletions

View file

@ -102,7 +102,7 @@ app.post('/machines/get', async (req, res) => {
// Endpoint to upload files to Google Drive
app.post('/drive/upload', upload.fields([{ name: 'pythonFile' }, { name: 'jsonFile', maxCount: 1 }]), async (req, res) => {
const { folderLink } = req.body;
const { pythonFile, jsonFile } = req.files;
const { pythonFile, jsonFile } = req.files;
if (!folderLink || !pythonFile) {
return res.status(400).json({ error: 'Folder link and Python file are required' });