update base URL for QuoteGeneratorApiV2 to use localhost in debug mode
Some checks failed
Build Android App / build (push) Failing after 57s
Some checks failed
Build Android App / build (push) Failing after 57s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import "dart:convert";
|
||||
import "dart:typed_data";
|
||||
import "package:flutter/foundation.dart";
|
||||
import "package:http/http.dart" as http;
|
||||
|
||||
|
||||
@@ -188,7 +189,7 @@ class QuoteSnapshot {
|
||||
|
||||
class QuoteGeneratorApiV2 {
|
||||
// static const String _baseUrl = "https://quotes.imbenji.net";
|
||||
static const String _baseUrl = "http://localhost:3000";
|
||||
static const String _baseUrl = kDebugMode ? "http://localhost:3000" : "https://quotes.imbenji.net";
|
||||
|
||||
|
||||
// create new session
|
||||
|
||||
Reference in New Issue
Block a user