chore: add code for 2 handlers with GET
Some checks failed
Backend ci / build (push) Failing after 36m27s

This commit is contained in:
d3m0k1d
2026-02-03 19:41:18 +03:00
parent 440b836d54
commit 44406b02d3
4 changed files with 43 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ var log = logger.New(false)
// @Tags posts
// @Accept json
// @Produce json
// @Success 200 {object} []storage.Post
// @Success 200 {object} []storage.PostReq
// @Router /api/v1/posts [get]
func GetPosts(c *gin.Context) {
log.Info("GetPosts")
@@ -25,7 +25,7 @@ func GetPosts(c *gin.Context) {
// @Tags posts
// @Accept json
// @Produce json
// @Success 200 {object} storage.Post
// @Success 200 {object} storage.PostReq
// @Router /api/v1/posts/{id} [get]
func GetPost(c *gin.Context) {
log.Info("GetPost")