busao
    Preparing search index...

    Function renderAdminPage

    • Builds the "Admin" page with internationalisation.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • request: BunRequest

        The request to the associated endpoint.

      • database: BunSQLiteDatabase

        The project's database.

      • maxSeats: number
      • route: string

        The API route for user search in the tables.

      • date: Date

        The current date.

      Returns Response

      An admin panel, with admin tables and all, in case the admin is properly aithenticated. Otherwise, a login form.

      If the admin is unauthenticated, a login form is shown.