refactor: executors and routers
* refactor: executors and routers
This commit is contained in:
@@ -2,14 +2,9 @@ package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/iliadenisov/galaxy/internal/controller"
|
||||
"github.com/iliadenisov/galaxy/internal/model/rest"
|
||||
"github.com/iliadenisov/galaxy/internal/router/handler"
|
||||
)
|
||||
|
||||
func SetupRouter() *gin.Engine {
|
||||
return SetupRouterConfig(nil)
|
||||
}
|
||||
|
||||
func SetupRouterConfig(config controller.Configurer) *gin.Engine {
|
||||
return setupRouter(config, func(controller.Configurer, rest.Command) error { return nil })
|
||||
func SetupRouter(e handler.CommandExecutor) *gin.Engine {
|
||||
return setupRouter(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user