Spaces:
Paused
Paused
Update server.js
Browse files
server.js
CHANGED
|
@@ -10,13 +10,7 @@ const baseUrl = getExternalUrl(process.env.SPACE_ID);
|
|
| 10 |
|
| 11 |
app.use(bodyParser.json({ limit: '50mb' }));
|
| 12 |
|
| 13 |
-
|
| 14 |
-
app.use((req, res, next) => {
|
| 15 |
-
console.log(`Incoming Request - Method: ${req.method}, URL: ${req.url}`);
|
| 16 |
-
console.log('Headers:', req.headers);
|
| 17 |
-
console.log('Body:', req.body);
|
| 18 |
-
next();
|
| 19 |
-
});
|
| 20 |
|
| 21 |
|
| 22 |
// Middleware to authenticate requests with the proxy key and check the model
|
|
|
|
| 10 |
|
| 11 |
app.use(bodyParser.json({ limit: '50mb' }));
|
| 12 |
|
| 13 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
// Middleware to authenticate requests with the proxy key and check the model
|