Skip to content

Commit 244d1e7

Browse files
pwizlaweb-flow
authored andcommitted
Recommend fully qualified handler names in Routes documentation (#2845)
* docs(backend): correct TypeScript code fences in TS tabs (controllers, services, middlewares, routes) * docs(bundlers): clarify webpack config example rename and JS/TS filenames * docs(routes): add guidance to prefer fully-qualified handler names in custom routers * Limit PR scope based on title; keep only intended doc(s); revert unrelated files --------- Co-authored-by: GitHub Actions <[email protected]>
1 parent bfa5c7d commit 244d1e7

File tree

1 file changed

+1
-1
lines changed
  • docusaurus/docs/cms/backend-customization

1 file changed

+1
-1
lines changed

docusaurus/docs/cms/backend-customization/routes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default factories.createCoreRouter('api::restaurant.restaurant', {
168168
</TabItem>
169169
</Tabs>
170170

171-
This only allows a `GET` request on the `/restaurants` path from the core `find` [controller](/cms/backend-customization/controllers) without authentication.
171+
This only allows a `GET` request on the `/restaurants` path from the core `find` [controller](/cms/backend-customization/controllers) without authentication. When you reference custom controller actions in custom routers, prefer the fully‑qualified `api::<api-name>.<controllerName>.<actionName>` form for clarity (e.g., `api::restaurant.restaurant.review`).
172172

173173
### Creating custom routers
174174

0 commit comments

Comments
 (0)