@@ -114,9 +114,9 @@ internals.zApApiRoutes = {
114114 newContext : async ( params ) => internals . zApApi ( 'JSON/context/action/newContext/' , { searchParams : new URLSearchParams ( params ) } )
115115 } ,
116116 core : {
117- htmlreport : async ( params ) => internals . zApApi ( 'OTHER/core/other/htmlreport/' , { responseType : 'text' } ) ,
118- jsonreport : async ( params ) => internals . zApApi ( 'OTHER/core/other/jsonreport/' ) ,
119- mdreport : async ( params ) => internals . zApApi ( 'OTHER/core/other/mdreport/' , { responseType : 'text' } ) ,
117+ htmlreport : async ( params ) => internals . zApApi ( 'OTHER/core/other/htmlreport/' , { responseType : 'text' , searchParams : new URLSearchParams ( params ) } ) ,
118+ jsonreport : async ( params ) => internals . zApApi ( 'OTHER/core/other/jsonreport/' , { searchParams : new URLSearchParams ( params ) } ) ,
119+ mdreport : async ( params ) => internals . zApApi ( 'OTHER/core/other/mdreport/' , { responseType : 'text' , searchParams : new URLSearchParams ( params ) } ) ,
120120 viewNumberOfAlerts : async ( params ) => internals . zApApi ( 'JSON/core/view/numberOfAlerts/' , { searchParams : new URLSearchParams ( params ) } ) ,
121121 viewUrls : async ( params ) => internals . zApApi ( 'JSON/core/view/urls/' , { searchParams : new URLSearchParams ( params ) } )
122122 } ,
@@ -142,6 +142,9 @@ internals.zApApiRoutes = {
142142 importUrl : async ( params ) => internals . zApApi ( 'JSON/openapi/action/importUrl/' , { searchParams : new URLSearchParams ( params ) } ) ,
143143 importFile : async ( params ) => internals . zApApi ( 'JSON/openapi/action/importFile/' , { searchParams : new URLSearchParams ( params ) } )
144144 } ,
145+ reports : {
146+ generate : async ( params ) => internals . zApApi ( 'JSON/reports/action/generate/' , { searchParams : new URLSearchParams ( params ) } )
147+ } ,
145148 script : {
146149 enable : async ( params ) => internals . zApApi ( 'JSON/script/action/enable/' , { searchParams : new URLSearchParams ( params ) } ) ,
147150 load : async ( params ) => internals . zApApi ( 'JSON/script/action/load/' , { searchParams : new URLSearchParams ( params ) } )
0 commit comments