busao
    Preparing search index...

    Function handleAdminSearch

    • Searches the database for trips matching the search parameters (search, status, trip).

      Parameters

      • i18n: i18n

        The internationalisation object.

      • request: BunRequest

        The request to the associated endpoint.

      • database: BunSQLiteDatabase
      • date: Date

        The date the trip was registered in.

      Returns Promise<Response>

      rows that are likely matches to the search parameter in case the admin is authenticated. Otherwise, an "Unauthorized" page.

      If the admin is unauthenticated, an "Unauthorized" page is shown.