mastering bridging
This commit is contained in:
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"satusehat-rssa/internal/handler"
|
||||
"satusehat-rssa/internal/midleware"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Condition(e *gin.Engine, conditionHandler *handler.ConditionHandler, m midleware.AuthMiddleware) {
|
||||
r := e.Group("Condition")
|
||||
r.POST("/", conditionHandler.CreateCondition)
|
||||
r.GET("/", conditionHandler.GetConditionByPatient)
|
||||
r.PUT("/:id", conditionHandler.UpdateCondition)
|
||||
// Add more routes as needed
|
||||
}
|
||||
Reference in New Issue
Block a user