File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ function update_ioc(ioc_id) {
249249 data [ 'ioc_description' ] = g_ioc_desc_editor . getValue ( ) ;
250250 data [ 'custom_attributes' ] = attributes ;
251251 let cid = get_caseid ( ) ;
252- put_request_api ( `/api/v2/${ cid } /iocs/${ ioc_id } ` , JSON . stringify ( data ) )
252+ put_request_api ( `/api/v2/cases/ ${ cid } /iocs/${ ioc_id } ` , JSON . stringify ( data ) )
253253 . done ( ( data , textStatus ) => {
254254 if ( textStatus == 'success' ) {
255255 reload_iocs ( ) ;
@@ -275,7 +275,7 @@ function delete_ioc(ioc_id) {
275275 . then ( ( doDelete ) => {
276276 if ( doDelete ) {
277277 let cid = get_caseid ( ) ;
278- delete_request_api ( `/api/v2/${ cid } /iocs/${ ioc_id } ` )
278+ delete_request_api ( `/api/v2/cases/ ${ cid } /iocs/${ ioc_id } ` )
279279 . done ( ( data , textStatus ) => {
280280 if ( textStatus === 'nocontent' ) {
281281 reload_iocs ( ) ;
You can’t perform that action at this time.
0 commit comments