feat: Add new handlers and repository for oauth2
All checks were successful
Backend ci / build (push) Successful in 3m36s

This commit is contained in:
d3m0k1d
2026-02-09 23:33:31 +03:00
parent fac6c1a1b1
commit c62dd7f421
5 changed files with 57 additions and 2 deletions

View File

@@ -8,8 +8,10 @@ import (
)
func Register(router *gin.Engine, db *sql.DB) {
handler_posts := NewPostHandler(repositories.NewPostRepository(db))
handler_posts := NewPostHandlers(repositories.NewPostRepository(db))
handler_auth := NewAuthHandlers(repositories.NewAuthRepository(db))
v1 := router.Group("api/v1")
v1.GET("/callback", handler_auth.Callback)
posts := v1.Group("posts")
{
posts.GET("/", handler_posts.GetPosts)