Phase 8: history
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user