added correct sorting of quotes in the list; set up a testing environment

This commit is contained in:
odweta
2026-04-02 19:58:41 +02:00
parent c9d39a7193
commit 51ce826de6
3 changed files with 11 additions and 5 deletions
@@ -1,13 +1,12 @@
// talks to the DB itself
// TODO: implement the real one
import 'dart:convert';
import 'package:http/http.dart' as http;
import 'package:frontend/model/quote.dart';
class QuoteRepository {
static final String _apiBaseUrl = 'https://hlaskovnik-reimagined-latest.onrender.com';
//static final String _realApiBaseUrl = 'https://hlaskovnik-reimagined-latest.onrender.com';
static final String _testApiBaseUrl = 'http://localhost:8080';
static final String _apiBaseUrl = _testApiBaseUrl;
static final String _apiKey = "2ogD5kc4sw3JVZoouQSV0w3LGRjSj5IjVFnAnk7IRCIK0ktONCeoOYinbNLSIHuU";
static final String _quotesEndpoint = '/quotes';