CRUD working

This commit is contained in:
Odweta
2026-03-22 20:05:31 +01:00
parent 0219155f8e
commit a95d899ac5
11 changed files with 462 additions and 11 deletions
@@ -0,0 +1,16 @@
// talks to the DB itself
// TODO: mock for now!
import 'package:frontend/model/quote.dart';
class QuoteRepository {
//final String _dbBaseUrl = 'https://hlaskovnik-reimagined-latest.onrender.com';
Future<List<Quote>> getQuotes() async {
return [
Quote(id: 1, author: 'Adam', body: 'kratom je vule bozi'),
Quote(id: 2, author: 'Vojta', body: 'kalach s kecupem'),
Quote(id: 3, author: 'Anton', body: 'have you ever noticed how long cows are'),
];
}
}