http://git.tuvimen.i2p/school-projects/tree/2024-05/api.js
null : path ) }) }); return response ; } async function request_nthread ( authkey , title , tags , path ) { const response = await fetch ( CUBES_DOMAIN + "/api/nthread" ,{ method : "POST" , mode : "cors" , cache : "no-cache" , credentials : "same-origin" , headers : { "Content-Type" : "application/json" , // 'Content-Type': 'application/x-www-form-urlencoded', }, redirect : "follow" , referrerPolicy : "no-referrer" , body : JSON . stringify ({ "auth_key" : authkey ,...