Initial commit 3.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"starter/backend/internal/handlers"
|
||||
"starter/backend/internal/middleware"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// RegisterRoutes registers all API routes under the given group
|
||||
func RegisterRoutes(rg *gin.RouterGroup) {
|
||||
rg.Use(middleware.Logger())
|
||||
rg.GET("/health", handlers.HealthCheck)
|
||||
}
|
||||
Reference in New Issue
Block a user