@@ -101,7 +101,7 @@ async function send_to_API(argv, results) {
101101 . concat ( Object . values ( results [ "own_categories" ] ) ) ;
102102
103103 response = await request
104- . post ( "/api/bulk_create_or_find_tag_categories " )
104+ . post ( "/api/bulk/create_or_find_tag_categories " )
105105 . set ( 'Authorization' , 'bearer ' + JWT_TOKEN )
106106 . set ( 'Content-Type' , 'application/json' )
107107 . set ( 'Accept' , 'application/json' )
@@ -159,7 +159,7 @@ async function send_to_API(argv, results) {
159159 // if no files, use the simplest way
160160 response = ( files . length === 0 )
161161 ? await request
162- . post ( "/api/bulk_create_exercises " )
162+ . post ( "/api/bulk/create_exercises " )
163163 . set ( 'Authorization' , 'bearer ' + JWT_TOKEN )
164164 . set ( 'Content-Type' , 'application/json' )
165165 . send ( exercises )
@@ -177,7 +177,7 @@ async function send_to_API(argv, results) {
177177async function bulk_insert_request ( request , JWT_TOKEN , exercises , files ) {
178178 // the most complicated thing :
179179 let requestInstance = request
180- . post ( "/api/bulk_create_exercises " )
180+ . post ( "/api/bulk/create_exercises " )
181181 . set ( 'Authorization' , 'bearer ' + JWT_TOKEN ) ;
182182
183183 // Add all given files
0 commit comments