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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user