BattlePass Purchasing! Chapter 1 S2-10 Support

This commit is contained in:
Lawin0129
2022-03-22 14:45:30 +00:00
parent 4573e0da43
commit 6db5236c87
15 changed files with 6340 additions and 136 deletions

View File

@@ -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'));