docs: general fixes and overall changes (#7258)

* editing halfway

* edited second half

* adjust starter steps

* fix build

* typo fix
This commit is contained in:
Shahed Nasser
2024-05-07 18:00:28 +02:00
committed by GitHub
parent 8db62827ac
commit 327e446974
57 changed files with 872 additions and 1849 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ The Medusa core application provides a set of admin and store API routes out-of-
An API Route is created in a TypeScript or JavaScript file under the `/src/api` directory of your Medusa application. The files name must be `route.ts` or `route.js`.
Each route file holds API Route handler functions for each HTTP method (`GET`, `POST`, `DELETE`, etc…).
Each route file exports API Route handler functions for at least one HTTP method (`GET`, `POST`, `DELETE`, etc…).
For example, to create a `GET` API Route at `/store/hello-world`, create the file `src/api/store/hello-world/route.ts` with the following content:
@@ -54,7 +54,7 @@ curl http://localhost:9000/store/hello-world
---
## When to Use
## When to Use API Routes
<Note title="Use API routes when" type="success">