feat: add diagnostic interview loop
This commit is contained in:
@@ -5,12 +5,15 @@ import (
|
||||
|
||||
"tutor/internal/config"
|
||||
"tutor/internal/httpapi"
|
||||
"tutor/internal/interview"
|
||||
"tutor/internal/workflows"
|
||||
)
|
||||
|
||||
func NewServer(cfg config.Config) *http.Server {
|
||||
runner := workflows.NewStubRunner()
|
||||
handler := httpapi.NewHandler(cfg, runner)
|
||||
store := interview.NewMemoryStore()
|
||||
service := interview.NewService(store, runner)
|
||||
handler := httpapi.NewHandler(cfg, service)
|
||||
|
||||
return &http.Server{
|
||||
Addr: cfg.HTTPAddr,
|
||||
|
||||
Reference in New Issue
Block a user