-
Notifications
You must be signed in to change notification settings - Fork 1
/
github.js
39 lines (38 loc) · 980 Bytes
/
github.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export default function handler(_req, res) {
if (process.env.NODE_ENV === 'production') {
res.status(404).send('Not found')
return
}
res.status(200).json([
{
id: 1,
name: 'example-repo',
html_url: 'https://github.com/oktay/oktaycolakoglu-2022',
description: 'Example repo description',
fork: false,
stargazers_count: 0,
watchers_count: 0,
language: 'JavaScript',
},
{
id: 2,
name: 'example-fork',
html_url: 'https://github.com/oktay/oktaycolakoglu-2022',
description: 'Example fork repo description',
fork: true,
stargazers_count: 0,
watchers_count: 0,
language: 'JavaScript',
},
{
id: 3,
name: 'example-repo',
html_url: 'https://github.com/oktay/oktaycolakoglu-2022',
description: 'Example repo description',
fork: false,
stargazers_count: 0,
watchers_count: 0,
language: 'JavaScript',
},
])
}