export async function getSeconds(fachId) {
try {
const csrfToken = getCsrfToken();
console.log("csrf=" + csrfToken)
const response = await fetch('/api/get-seconds', {
method: 'POST',
credentials: "include",
headers: {
'Content-Type': 'application/json',
'X-XSRF-TOKEN': csrfToken
},
body: JSON.stringify({ fachId })
});
console.log(response)
//if (!response.ok) {
// throw new Error(
export async function getSeconds(fachId) {
try {
const csrfToken = getCsrfToken();
console.log("csrf=" + csrfToken)
const response = await fetch('/api/get-seconds', {
method: 'POST',
credentials: "include",
headers: {
'Content-Type': 'application/json',
'X-XSRF-TOKEN': csrfToken
},
body: JSON.stringify({ fachId })
});
console.log(response)
//if (!response.ok) {
// throw new Error(