router.go 278 B

123456789101112
  1. package notification
  2. import "github.com/gin-gonic/gin"
  3. func InitRouter(r *gin.RouterGroup) {
  4. r.GET("notifications", GetList)
  5. r.GET("notifications/:id", Get)
  6. r.DELETE("notifications/:id", Destroy)
  7. r.DELETE("notifications", DestroyAll)
  8. r.GET("notifications/live", Live)
  9. }