feat: implement NotesService for comprehensive note, todo, and image management.

This commit is contained in:
Michael committed 2025-12-08 08:32:20 +01:00
1 parent 454fec3382
commit 389ce9ce89
1 file changed
+2 -2
+2 -2
View File
@@ -39,9 +39,9 @@ export interface Note {
}
class NotesService {
async getNotes(): Promise<Note[]> {
async getNotes(archived: boolean = false): Promise<Note[]> {
try {
const response = await fetch("/api/notes", {
const response = await fetch(`/api/notes?archived=${archived}`, {
headers: AuthService.getHeaders()
});