From c900a104ce3ca14b96de8c9ad915bb8abf0600e8 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 18 Jul 2024 20:02:14 +0300 Subject: [PATCH] docs: fix auth routes in api reference (#8187) --- www/apps/api-reference/app/_mdx/admin.mdx | 2 +- www/apps/api-reference/app/_mdx/store.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/apps/api-reference/app/_mdx/admin.mdx b/www/apps/api-reference/app/_mdx/admin.mdx index 2dc1a7dda5..314eca9aad 100644 --- a/www/apps/api-reference/app/_mdx/admin.mdx +++ b/www/apps/api-reference/app/_mdx/admin.mdx @@ -47,7 +47,7 @@ JWT tokens are obtained by sending a request to the authentication route passing For example: ```bash -curl -X POST '{backend_url}/auth/admin/emailpass' \ +curl -X POST '{backend_url}/auth/user/emailpass' \ -H 'Content-Type: application/json' \ --data-raw '{ "email": "user@example.com", diff --git a/www/apps/api-reference/app/_mdx/store.mdx b/www/apps/api-reference/app/_mdx/store.mdx index 52164214f7..901d626a3a 100644 --- a/www/apps/api-reference/app/_mdx/store.mdx +++ b/www/apps/api-reference/app/_mdx/store.mdx @@ -48,7 +48,7 @@ JWT tokens are obtained by sending a request to the authentication route passing For example: ```bash -curl -X POST '{backend_url}/auth/store/emailpass' \ +curl -X POST '{backend_url}/auth/customer/emailpass' \ -H 'Content-Type: application/json' \ --data-raw '{ "email": "user@example.com",