feat: add simple Oauth2 logic for github
Some checks failed
Backend ci / build (push) Has been cancelled

This commit is contained in:
d3m0k1d
2026-02-10 00:07:29 +03:00
parent c62dd7f421
commit 53d8760912
8 changed files with 109 additions and 18 deletions

View File

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