mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
BattlePass Purchasing! Chapter 1 S2-10 Support
This commit is contained in:
17
index.js
17
index.js
@@ -3,23 +3,6 @@ const express = Express();
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
express.use(function(req, res, next) {
|
||||
// Getting the raw body of a request for client saving
|
||||
if (req.originalUrl.includes('/fortnite/api/cloudstorage/user/')) {
|
||||
req.rawBody = '';
|
||||
req.setEncoding('latin1');
|
||||
|
||||
req.on('data', function(chunk) {
|
||||
req.rawBody += chunk;
|
||||
});
|
||||
|
||||
req.on('end', function() {
|
||||
next();
|
||||
});
|
||||
} else {
|
||||
return next();
|
||||
}
|
||||
});
|
||||
express.use(Express.json());
|
||||
express.use(Express.urlencoded({ extended: true }));
|
||||
express.use(Express.static('public'));
|
||||
|
||||
Reference in New Issue
Block a user