chore: add code for 2 handlers with GET
Some checks failed
Backend ci / build (push) Failing after 36m27s
Some checks failed
Backend ci / build (push) Failing after 36m27s
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user