docs: fix code block titles (#5733)

* docs: fix code block titles

* remove console

* fix build error
This commit is contained in:
Shahed Nasser
2023-11-27 16:08:10 +00:00
committed by GitHub
parent de8f748674
commit 547b16ead5
110 changed files with 483 additions and 456 deletions
+2 -2
View File
@@ -271,7 +271,7 @@ Medusa allows you to create custom API Routes exposed as REST APIs.
For example, create the following API Route that allows you to check the customers group and whether it has the `is_b2b` flag enabled:
```ts title=src/api/store/customers/is-b2b/route.ts
```ts title="src/api/store/customers/is-b2b/route.ts"
import type {
CustomerService,
MedusaRequest,
@@ -303,7 +303,7 @@ Medusa allows you to create custom API Routes exposed as REST APIs.
Then add the `requireCustomerAuthentication` middleware in `src/api/middlewares.ts` that ensures only authenticated customer can access this API Route:
```ts title=src/api/middlewares.ts
```ts title="src/api/middlewares.ts"
import {
requireCustomerAuthentication,
type MiddlewaresConfig,