feat: implement auth, projects, and frontend foundation
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { apiClient } from "./client";
|
||||
|
||||
export type DashboardSummary = {
|
||||
projects: number;
|
||||
repositories: number;
|
||||
sshKeys: number;
|
||||
recentActivity: string[];
|
||||
};
|
||||
|
||||
export const getDashboardSummary = async (): Promise<DashboardSummary> => {
|
||||
const response = await apiClient.get<DashboardSummary>("/dashboard/summary");
|
||||
return response.data;
|
||||
};
|
||||
Reference in New Issue
Block a user