Added migrations

This commit is contained in:
KamilM1205 2025-09-20 18:16:26 +04:00
parent 4a16acc87e
commit 5b18009658
34 changed files with 929 additions and 154 deletions

View file

@ -1 +1,18 @@
package interfaces
import (
"58team_blog/internal/application/services"
"58team_blog/internal/interfaces/api/controllers"
"github.com/gin-gonic/gin"
)
func BindPostAdmin(service *services.PostService, group *gin.RouterGroup) {
post := controllers.CreatePostController(service)
g := group.Group("/post")
g.GET("/", post.GetAllPost)
g.GET("/:id", post.GetByIdPost)
g.POST("/", post.PostPost)
g.PUT("/:id", post.PutPost)
}