17 lines
489 B
Go
17 lines
489 B
Go
package routes
|
|
|
|
import (
|
|
"satusehat-rssa/internal/handler"
|
|
"satusehat-rssa/internal/midleware"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func Observation(e *gin.Engine, observationHandler *handler.ObservationHandler, m midleware.AuthMiddleware) {
|
|
// Define the routes for observation
|
|
router := e.Group("/observation")
|
|
router.POST("/", observationHandler.CreateObservation)
|
|
router.GET("/", observationHandler.GetObservationByPatient)
|
|
router.PUT("/:id", observationHandler.UpdateObservation)
|
|
}
|