we don't need to care about the post url
This commit is contained in:
parent
312c95adb7
commit
9eed8a87d5
2
qonq.js
2
qonq.js
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user