ardasen commited on
Commit
51e0692
·
1 Parent(s): 4a4945c

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -35,7 +35,7 @@ function authenticateProxyKey(req, res, next) {
35
  }
36
 
37
  // Define routes
38
- app.post('/upload', upload.single('file'), async (req, res) => {
39
  try {
40
  // Extract the uploaded file and other form data
41
  const fileData = req.file;
 
35
  }
36
 
37
  // Define routes
38
+ app.post('/upload', authenticateProxyKey, upload.single('file'), async (req, res) => {
39
  try {
40
  // Extract the uploaded file and other form data
41
  const fileData = req.file;