initial commit

This commit is contained in:
2026-02-26 21:29:34 +01:00
commit d9d84634e8
72 changed files with 18491 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import type { $Fetch } from 'ofetch';
import type { List } from '~/types/lists'
export default class ListRepository {
private fetcher: $Fetch;
constructor(fetcher: $Fetch) {
this.fetcher = fetcher;
}
async getAll() {
return await this.fetcher<List[]>('/lists');
}
async create(data: Partial<List>) {
return await this.fetcher<List>('/lists', {
method: 'POST',
body: data
});
}
}