Skip to content

Commit

Permalink
fix(examples): client config for snippets middleware (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucmus authored Jan 14, 2025
1 parent 08a7ca8 commit 5514d68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineEventHandler(async (handler) => {
// create an instance of the Shopware API client
// using client credentials grant type
const client = createAdminAPIClient<operations>({
baseURL: `${useRuntimeConfig().public.shopware.shopwareEndpoint?.replace("store-api", "api")}`,
baseURL: `${useRuntimeConfig().public.shopware.endpoint?.replace("store-api", "api")}`,
credentials: {
grant_type: "client_credentials",
client_id: useRuntimeConfig()?.api_client_id,
Expand Down

0 comments on commit 5514d68

Please sign in to comment.