Skip to content

Commit 9fe04f0

Browse files
committed
Chore : Readme수정, api query색 명 변경
1 parent 29e9132 commit 9fe04f0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@
1717
```
1818
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&tag=github)](https://github.com/eungyeole/velog-readme-stats)
1919

20+
## 카드색 바꾸기 최신글 가져오기
21+
> Option : ```&color```
22+
23+
Color Option
24+
* black
25+
```
26+
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&color=black)](https://github.com/eungyeole/velog-readme-stats)
27+
```
28+
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&tag=github)](https://github.com/eungyeole/velog-readme-stats)
29+
30+

api/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ const fetchPost = require('../src/fetchers/post-fetcher');
44

55

66
module.exports = async (req, res) => {
7-
const { name, tag, background } = req.query;
7+
const { name, tag, color } = req.query;
88
res.setHeader('Content-Type', 'image/svg+xml');
99
try{
1010
const post = await fetchPost(name, tag);
11-
return res.send(background==='dark' ? createCardDark(post) : createCard(post))
11+
return res.send(color==='dark' ? createCardDark(post) : createCard(post))
1212
} catch(e){
1313
return res.send(e.message)
1414
}

0 commit comments

Comments
 (0)