feat: scaffold go backend foundation

This commit is contained in:
user
2026-04-26 16:14:31 +09:00
parent 2744c37f58
commit 0e232ff405
15 changed files with 633 additions and 13 deletions

19
internal/app/server.go Normal file
View File

@@ -0,0 +1,19 @@
package app
import (
"net/http"
"tutor/internal/config"
"tutor/internal/httpapi"
"tutor/internal/workflows"
)
func NewServer(cfg config.Config) *http.Server {
runner := workflows.NewStubRunner()
handler := httpapi.NewHandler(cfg, runner)
return &http.Server{
Addr: cfg.HTTPAddr,
Handler: handler.Routes(),
}
}