finish
This commit is contained in:
@@ -6,12 +6,18 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func managementPublicRouter(router *gin.RouterGroup) {
|
||||
func managementPrivateRouter(router *gin.RouterGroup) {
|
||||
managementRouter := router.Group("/management")
|
||||
{
|
||||
managementRouter.GET("/observation/contact/pull/:patientId", handler.PullContactHandler)
|
||||
managementRouter.GET("/faker/:patientId", handler.PullContactHandler)
|
||||
managementRouter.GET("/observation", handler.ListObservationsHandler)
|
||||
managementRouter.POST("/observation", handler.InsertObservationHandler)
|
||||
managementRouter.GET("/observation/:id", handler.GetObservationHandler)
|
||||
managementRouter.GET("/observation/tree/:id/:direction", handler.TreeifyObservationHandler)
|
||||
managementRouter.PUT("/observation", handler.UpdateObservationHandler)
|
||||
managementRouter.POST("/location/", handler.InsertLocationHandler)
|
||||
managementRouter.GET("/location/", handler.ListLocationHandler)
|
||||
managementRouter.DELETE("/location/", handler.DeleteLocationHandler)
|
||||
managementRouter.POST("/pcr/", handler.InsertPcrHandler)
|
||||
}
|
||||
}
|
||||
|
||||
17
router/notify.go
Normal file
17
router/notify.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
@@ -15,12 +15,13 @@ func BusiRouter() {
|
||||
statisticRouter(publicRouter)
|
||||
articlePublicRouter(publicRouter)
|
||||
userPublicRouter(publicRouter)
|
||||
managementPublicRouter(publicRouter)
|
||||
}
|
||||
|
||||
// Private
|
||||
{
|
||||
articlePrivateRouter(privateRouter)
|
||||
userPrivateRouter(privateRouter)
|
||||
notifyPrivateRouter(privateRouter)
|
||||
managementPrivateRouter(privateRouter)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user