@@ -22,7 +22,7 @@ func NewController(services *shared.Services) *Controller {
22
22
func (c * Controller ) ShowCommunities (ctx * gin.Context ) {
23
23
dbCommunities := fetchCommunities (c .services .DB )
24
24
communities := getCommunities (dbCommunities )
25
- utils .ShowJson (ctx , http .StatusOK , communities )
25
+ utils .ShowProto (ctx , http .StatusOK , communities )
26
26
}
27
27
28
28
func (c * Controller ) ShowBlogs (ctx * gin.Context ) {
@@ -46,7 +46,7 @@ func (c *Controller) ShowBlogs(ctx *gin.Context) {
46
46
47
47
dbBlogs := fetchBlogs (c .services .DB , uint32 (limit ), uint32 (offset ), sort )
48
48
blogs := getBlogs (dbBlogs )
49
- utils .ShowJson (ctx , http .StatusOK , blogs )
49
+ utils .ShowProto (ctx , http .StatusOK , blogs )
50
50
}
51
51
52
52
func (c * Controller ) ShowBlogArticles (ctx * gin.Context ) {
@@ -82,5 +82,5 @@ func (c *Controller) ShowBlogArticles(ctx *gin.Context) {
82
82
}
83
83
84
84
articles := getBlogArticles (dbBlogTopics , c .services .UrlFormatter )
85
- utils .ShowJson (ctx , http .StatusOK , articles )
85
+ utils .ShowProto (ctx , http .StatusOK , articles )
86
86
}
0 commit comments