TRA-4263 revert extensible routing (#774)

* Update main.go, extensions.go, and 2 more files...

* Update config_routes.go, entries_routes.go, and 7 more files...
This commit is contained in:
RamiBerm
2022-02-08 17:48:30 +02:00
committed by GitHub
parent 0a4674ea7c
commit 145004fe43
12 changed files with 230 additions and 326 deletions

View File

@@ -7,15 +7,9 @@ import (
"github.com/gin-gonic/gin"
)
var (
QueryPostValidateHandler = controllers.PostValidate
)
func QueryRoutes(ginApp *gin.Engine) *gin.RouterGroup {
func QueryRoutes(ginApp *gin.Engine) {
routeGroup := ginApp.Group("/query")
routeGroup.Use(middlewares.RequiresAuth())
routeGroup.POST("/validate", func(c *gin.Context) { QueryPostValidateHandler(c) })
return routeGroup
routeGroup.POST("/validate", controllers.PostValidate)
}