mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2024-12-15 06:04:17 +08:00
Merge pull request #19 from omidnikrah/patch-1
Use destructuring query assignment
This commit is contained in:
commit
137a9f2038
@ -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…
Reference in New Issue
Block a user