add user restriction

This commit is contained in:
Robin COuret
2026-03-06 16:31:40 +01:00
parent a243149bf1
commit a06e9c3633
37 changed files with 359 additions and 215 deletions

View File

@@ -3,7 +3,7 @@
import { BProgress } from "buefy";
import type { Knowledge } from "@/types/types";
import { apiClient } from "@/services/api";
import api from "@/services/apiAxios";
import { useItemStore } from '@/stores/item'
import { useStepStore } from '@/stores/step'
@@ -17,7 +17,7 @@
})
async function generateQuestions (knowledge: Knowledge) {
await apiClient.post(`api/v1/knowledges/${knowledge.id}/questions`, null)
await api.post(`api/v1/knowledges/${knowledge.id}/questions`)
stepStore.nextStep()
}
</script>