addedlimit to server js

This commit is contained in:
Jelaletdin12
2026-04-13 20:47:11 +05:00
parent aa3c333192
commit 808506832c
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -6,7 +6,7 @@ const app = express();
const port = 4173;
// API endpointleri
app.post("/frontend-api/data", express.json(), (req, res) => {
app.post("/frontend-api/data", express.json({ limit: '20mb' }), (req, res) => {
fs.writeFile(path.join(process.cwd(), "dist", "data.json"), JSON.stringify(req.body, null, 2), (err) => {
if (err) {
res.status(500).send(err.message);