Skip to content

Commit 43ee22d

Browse files
committed
🤖 Update LLMs files [skip ci]
1 parent 0f6a2ac commit 43ee22d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎docusaurus/static/llms-full.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4690,6 +4690,9 @@ Each controller action can be an `async` or `sync` function.
46904690
Every action receives a context object (`ctx`) as a parameter. `ctx` contains the [request context](/cms/backend-customization/requests-responses#ctxrequest) and the [response context](/cms/backend-customization/requests-responses#ctxresponse).
46914691

46924692
<details>
4693+
<summary>Example: GET /hello route calling a basic controller</summary>
4694+
4695+
A specific `GET /hello` [route](/cms/backend-customization/routes) is defined, the name of the router file (i.e. `index`) is used to call the controller handler (i.e. `index`). Every time a `GET /hello` request is sent to the server, Strapi calls the `index` action in the `hello.js` controller, which returns `Hello World!`:
46934696

46944697
</Tabs>
46954698

0 commit comments

Comments
 (0)