production
This commit is contained in:
@@ -6,13 +6,12 @@ import 'package:miler/data/api_config.dart';
|
||||
/// ── Why this file exists ──
|
||||
///
|
||||
/// The delivery screens under `lib/xpress` are a verbatim port of the
|
||||
/// Xpress-rider app, which talked to a different backend entirely:
|
||||
/// `jupiter.nearle.app` for reads and `queue.workolik.com` for writes, with the
|
||||
/// URLs scattered inline across `homepage.dart`, `cartpage.dart`,
|
||||
/// `deliveries.dart`, `summary.dart` and three controllers. Repointing that at
|
||||
/// Doormile by find/replacing hostnames is exactly the class of change that
|
||||
/// produced the `deliver`→`Pick up` corruption this repo has already had to
|
||||
/// undo once.
|
||||
/// Xpress-rider app, which talked to a **retired backend** entirely — two
|
||||
/// hosts, one for reads and one for writes, with the URLs scattered inline
|
||||
/// across `homepage.dart`, `cartpage.dart`, `deliveries.dart`, `summary.dart`
|
||||
/// and three controllers. Repointing that at Doormile by find/replacing
|
||||
/// hostnames is exactly the class of change that produced the
|
||||
/// `deliver`→`Pick up` corruption this repo has already had to undo once.
|
||||
///
|
||||
/// So every delivery-line URL is named here, once, and the call sites read a
|
||||
/// getter. Repointing the line is now one file.
|
||||
@@ -46,7 +45,7 @@ import 'package:miler/data/api_config.dart';
|
||||
/// be thin.
|
||||
///
|
||||
/// This is a known, accepted gap: it was chosen deliberately over keeping the
|
||||
/// working Nearle hosts. See the note in `docs/` if one is added.
|
||||
/// retired platform's hosts alive. See the note in `docs/` if one is added.
|
||||
/// ─────────────────────────────────────────────────────────────────────────
|
||||
class DeliveryApi {
|
||||
DeliveryApi._();
|
||||
@@ -173,9 +172,9 @@ class DeliveryApi {
|
||||
|
||||
/// **ABSENT** — image upload for a support ticket attachment.
|
||||
///
|
||||
/// Was `/api/v1/partners/uploadimage/`, with the result served back from
|
||||
/// `images.nearle.app`. Doormile has no upload route and no image host, so
|
||||
/// attachments cannot be sent.
|
||||
/// Was `/api/v1/partners/uploadimage/` on the retired platform, with the
|
||||
/// result served back from its own image host. Doormile has no upload route
|
||||
/// and no image host, so attachments cannot be sent.
|
||||
static String get uploadImage => url('/miler/support/upload');
|
||||
|
||||
/// Public base for an uploaded image. **ABSENT** — see [uploadImage].
|
||||
|
||||
Reference in New Issue
Block a user