feat: init api

This commit is contained in:
Ilia Denisov
2026-01-08 13:32:40 +02:00
parent 204d3df8cf
commit 972cfd82be
12 changed files with 240 additions and 108 deletions
+6 -1
View File
@@ -2,9 +2,14 @@ package router
import (
"github.com/gin-gonic/gin"
"github.com/iliadenisov/galaxy/internal/controller"
"github.com/iliadenisov/galaxy/internal/model/rest"
)
func SetupRouter() *gin.Engine {
return setupRouter(func(c rest.Command) error { return nil })
return SetupRouterConfig(nil)
}
func SetupRouterConfig(config controller.Config) *gin.Engine {
return setupRouter(config, func(controller.Config, rest.Command) error { return nil })
}