composed6/services/api/internal/api/routes.go
jordan e6993db729
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add service component: api
2026-02-01 20:05:24 +00:00

22 lines
556 B
Go

// Package api provides HTTP routing and handlers for the api service.
package api
import (
"github.com/jordan/composed6/pkg/app"
"github.com/jordan/composed6/services/api/internal/api/handlers"
)
// RegisterRoutes registers all HTTP routes for the service.
func RegisterRoutes(application *app.App) {
logger := application.Logger()
// Initialize handlers
healthHandler := handlers.NewHealth(logger)
// Register API routes
application.Route("/api/v1", func(r app.Router) {
r.Get("/health", healthHandler.Check)
// Add more routes here
})
}