mastering bridging
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"satusehat-rssa/internal/handler"
|
||||
"satusehat-rssa/internal/midleware"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Composition(r *gin.Engine, h *handler.CompositionHandler, m midleware.AuthMiddleware) {
|
||||
r.POST("/compositions/", h.CreateComposition)
|
||||
r.PUT("/compositions/:id", h.UpdateComposition)
|
||||
}
|
||||
Reference in New Issue
Block a user