UNPKG

@mieweb/wikigdrive

Version:

Google Drive to MarkDown synchronization

17 lines (12 loc) 429 B
export class GitClientService { constructor(private authenticatedClient) { } async getHistory(driveId, path) { const response = await this.authenticatedClient.fetchApi(`/api/git/${driveId}/history${path}`); return await response.json(); } async getDiff(driveId, path) { const response = await this.authenticatedClient.fetchApi(`/api/git/${driveId}/diff${path}`); return await response.json(); } }