Phase 8: history

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jānis Kacēns
2026-05-11 16:50:55 +03:00
parent 715c1e4fe5
commit 2477130dd9
4 changed files with 219 additions and 0 deletions
+2
View File
@@ -60,6 +60,7 @@ func main() {
uploadH := handlers.NewUploadHandler(authMgr, repo, llmClient, renderer, cfg.DataDir)
questionH := handlers.NewQuestionHandler(authMgr, repo, renderer)
testH := handlers.NewTestHandler(authMgr, repo, renderer)
historyH := handlers.NewHistoryHandler(authMgr, repo, renderer)
r := chi.NewRouter()
r.Use(middleware.RequestID)
@@ -95,6 +96,7 @@ func main() {
r.Get("/test/{id}/q/{n}", testH.QuestionGet)
r.Post("/test/{id}/q/{n}", testH.QuestionPost)
r.Get("/test/{id}/results", testH.ResultsGet)
r.Get("/history", historyH.Handle)
})
srv := &http.Server{