- Remove duplicate calc structs, use model.CalcXxx - Replace log.Printf with logger in recommend handler - Remove dead code (unused var, dummy imports) - Clean up response helpers - Add api/ package with route registration Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
281 B
Go
16 lines
281 B
Go
package handler
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"floorvisualizer/internal/openrouter"
|
|
"floorvisualizer/internal/service"
|
|
)
|
|
|
|
// API holds all handler dependencies, injected once at startup.
|
|
type API struct {
|
|
DB *sql.DB
|
|
Client *openrouter.Client
|
|
AuthSvc *service.AuthService
|
|
}
|