feat: new public website
This commit is contained in:
10
apps/public/src/lib/github.ts
Normal file
10
apps/public/src/lib/github.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export async function getGithubRepoInfo() {
|
||||
try {
|
||||
const res = await fetch(
|
||||
'https://api.github.com/repos/Openpanel-dev/openpanel',
|
||||
);
|
||||
return res.json();
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user