zhangzengfei
2024-05-16 e5be7a7ed63d4b4e4267057d84b77c4bd3c16781
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}