Update server.js
Browse files
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;
|