docs(ui): update 3.4 Modules & Services v2 documentation (#8751)

* chore: update 3.4 Modules and Services v2 documentation

explicitly mentioned `service.ts` requirement in 3.4 guide from 3.6

Content from:
https://docs.medusajs.com/v2/basics/modules-directory-structure#servicets

* chore: add missing dot

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
Ray Quijada
2024-08-26 15:53:52 +08:00
committed by GitHub
parent 9a508056f6
commit bb0fcbad7b

View File

@@ -30,7 +30,7 @@ For example, create the directory `src/modules/hello`.
### 1. Create Main Service
A module must define a service. A service is a TypeScript or JavaScript class holding methods related to a business logic or commerce functionality.
A module must define a service. A service is a TypeScript or JavaScript class holding methods related to a business logic or commerce functionality. It must be defined at the root of your module directory under `service.ts` filename.
For example, create the file `src/modules/hello/service.ts` with the following content: