18 lines
446 B
Go
18 lines
446 B
Go
package router
|
|
|
|
import (
|
|
"nCovTrack-Backend/handler"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func notifyPrivateRouter(router *gin.RouterGroup) {
|
|
notifyRouter := router.Group("/notify")
|
|
{
|
|
notifyRouter.GET("/count", handler.CountNotificationHandler)
|
|
notifyRouter.POST("/", handler.InsertNotificationHandler)
|
|
notifyRouter.GET("/:start/:end", handler.ListNotificationHandler)
|
|
notifyRouter.DELETE("/:index", handler.DeleteNotificationHandler)
|
|
}
|
|
}
|