File: //var/www/quadcode.com/build/server/chunks/_server.ts-143eac36.js.map
{"version":3,"file":"_server.ts-143eac36.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/post/view/_server.ts.js"],"sourcesContent":["import{j as t}from\"../../../../../chunks/index.js\";import{l as i}from\"../../../../../chunks/index3.js\";import{b as p}from\"../../../../../chunks/shared-server.js\";const w=async e=>{const{request:n}=e,o=await n.json();o.lang_by_browser=i.get();const a={token:\"secret\",post_id:o.postId},s=await fetch(`${p.PRIVATE_WP_URL}/wp-json/api/v1/view`,{method:\"POST\",headers:{\"content-type\":\"Application/json\"},body:JSON.stringify(a)}),r=await s.json();return s.ok?t({status:\"ok\"},{status:200}):r.errors?t({...r.errors},{status:403}):t({error:\"Something went wrong\"},{status:429})};export{w as POST};\n"],"names":["i","p","t"],"mappings":";;;;;AAAuK,MAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,eAAe,CAACA,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,EAAEC,CAAC,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,CAACC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAACA,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAACA,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;;;;"}