mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-02-13 01:39:26 +00:00
feat: play verb url support single or array list url (#158)
* feat: update time-series 0.11.12 * feat: support play verb url in plain text or array * fix: review comment Co-authored-by: Dave Horton <daveh@beachdognet.com>
This commit is contained in:
@@ -15,4 +15,13 @@ const provisionCallHook = (from, verbs) => {
|
||||
post('/appMapping', mapping);
|
||||
}
|
||||
|
||||
module.exports = provisionCallHook
|
||||
const provisionCustomHook = (from, verbs) => {
|
||||
const mapping = {
|
||||
from,
|
||||
data: JSON.stringify(verbs)
|
||||
};
|
||||
const post = bent('http://127.0.0.1:3100', 'POST', 'string', 200);
|
||||
post(`/customHookMapping`, mapping);
|
||||
}
|
||||
|
||||
module.exports = { provisionCallHook, provisionCustomHook}
|
||||
|
||||
Reference in New Issue
Block a user