mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add req
and res
as controllers hooks parameters
Hooks prefixed by `action:api` now give access the original express req and res. Checkout guide.md for possible usage.
This commit is contained in:
parent
5098098d96
commit
7226e90fdc
12 changed files with 41 additions and 23 deletions
|
@ -85,6 +85,8 @@ export const serverActionHookObject = {
|
|||
// Fired when the application has been loaded and is listening HTTP requests
|
||||
'action:application.listening': true,
|
||||
|
||||
// API actions hooks give access to the original express `req` and `res` parameters
|
||||
|
||||
// Fired when a local video is updated
|
||||
'action:api.video.updated': true,
|
||||
// Fired when a local video is deleted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue