feat: init api
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user