MCPcopy Create free account
hub / github.com/adobe/Marinus / custom_code_handler

Function custom_code_handler

web_server/public/javascripts/custom_code.js:42–56  ·  view source on GitHub ↗

* This is a generic handler that is included in pages that support custom actions. * The first argument in the array informs the function which page is calling. * Based on the first argument (args[0]), you can then call your own functions * that you have added to this file.

(...args)

Source from the content-addressed store, hash-verified

40 * that you have added to this file.
41 */
42function custom_code_handler(...args) {
43 if (args[0] === "/ip") {
44 // Place your custom IP page function here.
45 } else if (args[0] === "/domain") {
46 // Place your custom Domain page function here.
47 } else if (args[0] === "zone_ui_data_requests") {
48 // Place your custom Zone page data function here.
49 } else if (args[0] === "zone_ui_table_header") {
50 // Place your custom Zone page UI table header function here.
51 } else if (args[0] === "zone_ui_table_row") {
52 // Place your custom Zone page UI table row function here.
53 } else if (args[0] === "port_aws_check") {
54 // Place your Port page custom AWS check code here
55 }
56}

Callers 4

queriesFunction · 0.85
check_aws_ipFunction · 0.85
zone_data_requestsFunction · 0.85
display_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected