function

createAdminClient

Creates the admin's own client for the API at baseURL, the page's origin by default. The admin reads its schema at run time, so this needs no generated application types; pass it as clientFactory unless the admin must reach another origin or add request middleware.

Arguments

ArgumentTypeDescription
baseURLstringThe baseURL value.

Returns

The declared result.

AdminClient

Full signature

Related types

  • AdminClient

    Public type AdminClient from @riducms/admin.