22 lines
556 B
Go
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
|
|
})
|
|
}
|