Skip to content

Commit

Permalink
feat(projects): XXX-0 add getArchived method
Browse files Browse the repository at this point in the history
  • Loading branch information
noticeeverything committed Oct 7, 2021
1 parent f78bdfa commit 873df81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/projects/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export class Projects {
return data
}

async getArchived(): Promise<TimelyProject[]> {
const { data } = await this.http.get(`/${this.config.accountId}/projects?filter=archived`)
return data
}

async getById(projectId: number): Promise<TimelyProject> {
const { data } = await this.http.get(`/${this.config.accountId}/projects/${projectId}`)
return data
Expand Down

0 comments on commit 873df81

Please sign in to comment.