Files
d3m0k1d.ru/backend/internal/handlers/registry_handlers.go
d3m0k1d 440b836d54
All checks were successful
Backend ci / build (push) Successful in 7m15s
chore: add docs to swagger and add pass handlers
2026-02-03 19:26:49 +03:00

18 lines
313 B
Go

package handlers
import (
"github.com/gin-gonic/gin"
)
func Register(router *gin.Engine) {
v1 := router.Group("api/v1")
posts := v1.Group("posts")
{
posts.GET("/", GetPosts)
posts.GET("/:id", GetPost)
posts.POST("/", CreatePost)
posts.PUT("/:id", UpdatePost)
posts.DELETE("/:id", DeletePost)
}
}