18 lines
423 B
Go
18 lines
423 B
Go
|
|
package router
|
||
|
|
|
||
|
|
import (
|
||
|
|
"cybertron/internal/dependencies"
|
||
|
|
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
func HoustonRouter(r *gin.Engine, dep *dependencies.Dependencies) {
|
||
|
|
hh := dep.Handler.HoustonHandler
|
||
|
|
houstonRouterGroup := r.Group("/api")
|
||
|
|
{
|
||
|
|
houstonRouterGroup.POST("/v1/create", hh.CreateHouston)
|
||
|
|
houstonRouterGroup.GET("/v1/products", hh.GetProducts)
|
||
|
|
houstonRouterGroup.GET("/v1/responderTeam", hh.GetResponderTeam)
|
||
|
|
}
|
||
|
|
}
|