This commit is contained in:
@@ -23,6 +23,10 @@ impl ApiClient {
|
||||
self.get(&format!("/v1/tasks?date={date}"))
|
||||
}
|
||||
|
||||
pub fn list_overdue_tasks(&self, before: &str) -> Result<Vec<Task>, String> {
|
||||
self.get(&format!("/v1/tasks/overdue?before={before}"))
|
||||
}
|
||||
|
||||
pub fn list_routines(&self) -> Result<Vec<Routine>, String> {
|
||||
self.get("/v1/routines")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user