busao
    Preparing search index...

    Function renderSuccessPage

    • Builds the "Success" page tied to a trip with internationalisation.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • request: Request

        The request to the associated endpoint.

      • database: BunSQLiteDatabase
      • date: Date

        The date the trip was registered in.

      Returns Response

      The parameters (trip tokens) are provided as search parameters:

      • oneWay
      • return

      If both search parameters have a value, it's inferred that a trip is a roundtrip.

      If no search parameters are provided, a "Unauthorized" page is shown.