package api

import (
	"github.com/gin-gonic/gin"
)

// SetupRoutes sets up API routes
func SetupRoutes(router *gin.Engine, handlers *Handlers) {
	// API group
	api := router.Group("/api")
	{
		// Task-related routes
		tasks := api.Group("/migration")
		{
			// Create task
			tasks.POST("", handlers.CreateTask)
			// Query task status
			tasks.GET("/:taskId", handlers.GetTask)
		}
	}
}

// SetupHealthCheck sets up health check route
func SetupHealthCheck(router *gin.Engine) {
	router.GET("/health", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"status": "ok",
		})
	})
}
