feat: add projects page and rework home page
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { GithubRepository } from '~/types/github-repository';
|
||||
|
||||
export const useGithub = () => {
|
||||
const api = useApi('https://api.github.com');
|
||||
|
||||
const getRepoMeta = (owner: string, name: string): UseApiResponse<GithubRepository> =>
|
||||
api.get<GithubRepository>(`repos/${owner}/${name}`);
|
||||
|
||||
return { getRepoMeta };
|
||||
};
|
||||
Reference in New Issue
Block a user