adding authmiddleware

This commit is contained in:
areeqakbr 2025-02-18 15:01:09 +07:00
parent a695305524
commit 8e6b471310
1 changed files with 3 additions and 1 deletions

View File

@ -18,11 +18,13 @@ type BackboneController struct {
func (bc *BackboneController) Route() {
rg := bc.rg.Group("/backbone")
rg.Use(middleware.AuthMiddleware())
{
rg.GET("", bc.GetBackbone())
rg.POST("", bc.CreateBackbone())
rg.GET("/:uuid", bc.GetBackboneByID())
rg.PUT("/:uuid", bc.UpdateBackbone())
}
}
func NewBackboneController(bu usecase.BackboneUseCase, rg *gin.RouterGroup) *BackboneController {