mirror of
https://github.com/Aviortheking/codestats-readme.git
synced 2025-04-22 10:42:08 +00:00
Use destructuring props assignment
This commit is contained in:
parent
43c49de37f
commit
9083ae3e49
@ -135,11 +135,7 @@ const renderSVG = (stats, options) => {
|
||||
};
|
||||
|
||||
module.exports = async (req, res) => {
|
||||
const username = req.query.username;
|
||||
const hide = req.query.hide;
|
||||
const hide_border = req.query.hide_border;
|
||||
const show_icons = req.query.show_icons;
|
||||
const line_height = req.query.line_height;
|
||||
const { username, hide, hide_border, show_icons, line_height } = req.query;
|
||||
let stats;
|
||||
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
|
Loading…
x
Reference in New Issue
Block a user