/ src / api / repos / activity.ts
activity.ts
1  import { API_URL } from "../constants"
2  
3  export interface RepositoryActivity {
4      activity: Array<number>
5  }
6  
7  export const getRepositoryActivity = async (rid: string): Promise<RepositoryActivity> =>
8      fetch(`${API_URL}/repos/${rid}/activity`)
9          .then(res => res.json())