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:
parent
7d8e19d1f5
commit
efa7eabfaa
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import "dart:convert";
|
import "dart:convert";
|
||||||
import "dart:typed_data";
|
import "dart:typed_data";
|
||||||
|
import "package:flutter/foundation.dart";
|
||||||
import "package:http/http.dart" as http;
|
import "package:http/http.dart" as http;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -188,7 +189,7 @@ class QuoteSnapshot {
|
||||||
|
|
||||||
class QuoteGeneratorApiV2 {
|
class QuoteGeneratorApiV2 {
|
||||||
// static const String _baseUrl = "https://quotes.imbenji.net";
|
// 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
|
// create new session
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue