diff --git a/docs/hooks-and-api.md b/docs/hooks-and-api.md index 99f105d..8e2b32c 100644 --- a/docs/hooks-and-api.md +++ b/docs/hooks-and-api.md @@ -6,13 +6,15 @@ Hooks are PHP files in the `hooks/` directory that execute server-side logic. Th ### Testing Hooks -To test hooks, the site's Docker container must be running. Make a curl request to the Docker URL with the hook path. For example, if a hook is located at `hooks/example_hook/`: +To test hooks, the site's Docker container must be running. Make a curl request to the Docker URL with the hook path. For example, if a hook is named `hooks.example_hook.php`: ```bash curl http://{DOCKER_URL_AND_PORT}/hooks/example_hook/ ``` -Replace `{DOCKER_URL_AND_PORT}` with your local Docker address (e.g., `localhost:8080`). +Replace `{DOCKER_URL_AND_PORT}` with your local Docker address (e.g., `localhost:8080`) and parse hook name for url endpoint. + +Do not use X-Hooks-Token because its not needed on developer environment. ### How to Call Hooks