package routes
|
|
import (
|
"gat1400Exchange/controller"
|
"github.com/gin-gonic/gin"
|
)
|
|
func InitSubscribesRouters(r *gin.RouterGroup) gin.IRoutes {
|
subCtl := controller.NewSubscribeController()
|
|
r.GET("/Subscribes", subCtl.SubscribesList)
|
r.POST("/Subscribes", subCtl.Subscribes)
|
r.PUT("/Subscribes", subCtl.UpdateSubscribes)
|
r.DELETE("/Subscribes", subCtl.DeleteSubscribe)
|
r.POST("/SubscribeNotifications", subCtl.Notifications)
|
|
return r
|
}
|