feat: add ontology material ingestion
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"tutor/internal/config"
|
||||
"tutor/internal/interview"
|
||||
"tutor/internal/learnermemory"
|
||||
"tutor/internal/ontology"
|
||||
"tutor/internal/progression"
|
||||
)
|
||||
|
||||
@@ -15,6 +16,7 @@ type Handler struct {
|
||||
diagnostic *interview.Service
|
||||
memory *learnermemory.Service
|
||||
progress *progression.Service
|
||||
ontology *ontology.Service
|
||||
}
|
||||
|
||||
func NewHandler(
|
||||
@@ -22,12 +24,14 @@ func NewHandler(
|
||||
diagnostic *interview.Service,
|
||||
memory *learnermemory.Service,
|
||||
progress *progression.Service,
|
||||
ontology *ontology.Service,
|
||||
) Handler {
|
||||
return Handler{
|
||||
cfg: cfg,
|
||||
diagnostic: diagnostic,
|
||||
memory: memory,
|
||||
progress: progress,
|
||||
ontology: ontology,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +44,8 @@ func (h Handler) Routes() http.Handler {
|
||||
mux.HandleFunc("GET /api/v1/learners/{userID}/memory", h.getLearnerMemory)
|
||||
mux.HandleFunc("GET /api/v1/learners/{userID}/readiness-map", h.getReadinessMap)
|
||||
mux.HandleFunc("GET /api/v1/learners/{userID}/next-challenge", h.getNextChallenge)
|
||||
mux.HandleFunc("POST /api/v1/materials", h.ingestMaterial)
|
||||
mux.HandleFunc("GET /api/v1/ontology", h.getOntology)
|
||||
return mux
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user