Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimafia-bot committed Sep 18, 2023
1 parent fe4e253 commit b88679e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ app.use(cookieParser());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(session);
app.use(csrf);
app.use(compression({filter: (req, res) => {
return req.headers["x-no-compression"] ? false : compression.filter(req, res);
}}));
app.use(
compression({
filter: (req, res) => {
return req.headers["x-no-compression"]
? false
: compression.filter(req, res);
},
})
);
app.use(
"/uploads",
express.static(path.join(__dirname, process.env.UPLOAD_PATH), {
Expand Down

0 comments on commit b88679e

Please sign in to comment.