@@ -101,7 +101,7 @@ async function send_to_API(argv, results) {
101
101
. concat ( Object . values ( results [ "own_categories" ] ) ) ;
102
102
103
103
response = await request
104
- . post ( "/api/bulk_create_or_find_tag_categories " )
104
+ . post ( "/api/bulk/create_or_find_tag_categories " )
105
105
. set ( 'Authorization' , 'bearer ' + JWT_TOKEN )
106
106
. set ( 'Content-Type' , 'application/json' )
107
107
. set ( 'Accept' , 'application/json' )
@@ -159,7 +159,7 @@ async function send_to_API(argv, results) {
159
159
// if no files, use the simplest way
160
160
response = ( files . length === 0 )
161
161
? await request
162
- . post ( "/api/bulk_create_exercises " )
162
+ . post ( "/api/bulk/create_exercises " )
163
163
. set ( 'Authorization' , 'bearer ' + JWT_TOKEN )
164
164
. set ( 'Content-Type' , 'application/json' )
165
165
. send ( exercises )
@@ -177,7 +177,7 @@ async function send_to_API(argv, results) {
177
177
async function bulk_insert_request ( request , JWT_TOKEN , exercises , files ) {
178
178
// the most complicated thing :
179
179
let requestInstance = request
180
- . post ( "/api/bulk_create_exercises " )
180
+ . post ( "/api/bulk/create_exercises " )
181
181
. set ( 'Authorization' , 'bearer ' + JWT_TOKEN ) ;
182
182
183
183
// Add all given files
0 commit comments