we don't need to care about the post url

This commit is contained in:
Lamp 2021-10-22 14:06:53 -05:00
parent 312c95adb7
commit 9eed8a87d5

@ -25,7 +25,7 @@ app.use((req, res, next)=>{
next();
});
app.post("/upload", (req, res, next) => {
app.post("*", (req, res, next) => {
if (req.headers.authentication != process.env.AUTH_TOKEN) return res.status(403).send("Unauthorized");
var form = new formidable.IncomingForm({
maxFileSize: 2**30, // 1 GiB