lint
This commit is contained in:
parent
a72e440222
commit
c0faaf51ff
1 changed files with 5 additions and 6 deletions
11
server.js
11
server.js
|
@ -33,11 +33,10 @@ app.get('/', function (req, res) {
|
|||
})
|
||||
|
||||
app.get('/:owner/:repo', async function (req, res) {
|
||||
let repo = await (
|
||||
await fetch(
|
||||
`https://git.gay/api/v1/repos/${req.params.owner}/${req.params.repo}`
|
||||
)
|
||||
).json()
|
||||
const repoResp = await fetch(
|
||||
`https://git.gay/api/v1/repos/${req.params.owner}/${req.params.repo}`
|
||||
)
|
||||
const repo = await repoResp.json()
|
||||
let infoHtml = `
|
||||
<p style="font-size: 36px; color: #9A8FA7;">${escape(
|
||||
repo.owner.full_name
|
||||
|
@ -52,7 +51,7 @@ app.get('/:owner/:repo', async function (req, res) {
|
|||
repo.description
|
||||
)}</p>`
|
||||
|
||||
let img = await html2png(
|
||||
const img = await html2png(
|
||||
`<div class="main">
|
||||
<div class="contents">
|
||||
<div class="info">
|
||||
|
|
Loading…
Reference in a new issue