Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

doc: Update how-to-create-a-feature.mdx

Alfonso Hernandezf95092e083db
diff --git a/docs/contributing/platform/backend/how-to-create-a-feature.mdx b/docs/contributing/platform/backend/how-to-create-a-feature.mdx
index e77313dab1..8449eb5013 100644
--- a/docs/contributing/platform/backend/how-to-create-a-feature.mdx
+++ b/docs/contributing/platform/backend/how-to-create-a-feature.mdx
@@ -49,8 +49,8 @@ Server-related logic is handled in `/src/server`. To connect the service layer t
## Writing API Routes
-1. To create a route component, run `npm generate:component`.
+1. To create a route component, run `npm run generate:component`.
2. Select option 3, type the router name in dash-case, and provide the version number. This will generate a router file in `src/server/routes/v<version-number>/<router component name>`
1. Implement your logic to connect with the service layer as needed.
2. Import the router component in the version folder's index.ts. For instance, if it's in v1, import it in `v1/index.ts`.
- 3. Finally, register it under the appropriate prefix for access.
\ No newline at end of file
+ 3. Finally, register it under the appropriate prefix for access.