feat: Add new handlers and repository for oauth2
All checks were successful
Backend ci / build (push) Successful in 3m36s
All checks were successful
Backend ci / build (push) Successful in 3m36s
This commit is contained in:
27
backend/internal/handlers/auth_handlers.go
Normal file
27
backend/internal/handlers/auth_handlers.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"gitea.d3m0k1d.ru/d3m0k1d/d3m0k1d.ru/backend/internal/repositories"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type AuthHandlers struct {
|
||||
repo repositories.AuthRepository
|
||||
}
|
||||
|
||||
func NewAuthHandlers(repo repositories.AuthRepository) *AuthHandlers {
|
||||
return &AuthHandlers{repo: repo}
|
||||
}
|
||||
|
||||
// Callback godoc
|
||||
// @Summary Callback for oauth2 providers
|
||||
// @Description Callback for oauth2 providers
|
||||
// @Tags auth
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} map[string]string
|
||||
// @Router /callback [get]
|
||||
func (h *AuthHandlers) Callback(c *gin.Context) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user