feat: add simple docker compose file, change pipline, add docker build command to makefile, update db path logic in storage packages, minor fixes in handlers

This commit is contained in:
d3m0k1d
2026-02-14 14:40:42 +03:00
parent c2d5178b33
commit 3bf3e2a233
8 changed files with 71 additions and 12 deletions

View File

@@ -20,8 +20,8 @@ func Register(router *gin.Engine, db *sql.DB) {
posts.GET("/", handler_posts.GetPosts)
posts.GET("/:id", handler_posts.GetPost)
posts.POST("/", handler_posts.CreatePost)
posts.PUT("/:id", handler_posts.UpdatePost)
posts.DELETE("/:id", handler_posts.DeletePost).Use(auth.JWTMiddleware())
posts.POST("/", auth.JWTMiddleware(), handler_posts.CreatePost)
posts.PUT("/:id", auth.JWTMiddleware(), handler_posts.UpdatePost)
posts.DELETE("/:id", auth.JWTMiddleware(), handler_posts.DeletePost)
}
}