feat: add projects page and rework home page
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import type { CrateMeta } from '~/types/crate';
|
||||
|
||||
export const useCrates = () => {
|
||||
const api = useApi('https://crates.io/api/v1/');
|
||||
const getCrateInfo = (name: string): UseApiResponse<CrateMeta> => api.get<CrateMeta>(`crates/${name}`);
|
||||
|
||||
return { getCrateInfo };
|
||||
};
|
||||
Reference in New Issue
Block a user