Skip to content

feat: allow injecting logic to APISIX's method#5068

Merged
spacewander merged 2 commits into
apache:masterfrom
spacewander:paa
Sep 16, 2021
Merged

feat: allow injecting logic to APISIX's method#5068
spacewander merged 2 commits into
apache:masterfrom
spacewander:paa

Conversation

@spacewander

Copy link
Copy Markdown
Member

See #5029

Signed-off-by: spacewander [email protected]

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@spacewander
spacewander marked this pull request as ready for review September 15, 2021 12:52
lua_module_hook: "my_hook"
```

The `example/my_hook.lua` will be loaded when APISIX starts, and you can use this hook to replace a method in APISIX.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe refer to the example/my_hook.lua.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Signed-off-by: spacewander <[email protected]>
@spacewander
spacewander merged commit f373faf into apache:master Sep 16, 2021
@spacewander
spacewander deleted the paa branch September 16, 2021 03:56
@griffenliu

Copy link
Copy Markdown
Contributor

good job!!!

tzssangglass pushed a commit to tzssangglass/apisix that referenced this pull request Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants