From cb91a10192582ad2a608ec968a8c15af3217661e Mon Sep 17 00:00:00 2001 From: LandaMm Date: Mon, 19 May 2025 10:13:25 +0200 Subject: [PATCH] feat: auth handler init --- internal/auth/routes.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 internal/auth/routes.go diff --git a/internal/auth/routes.go b/internal/auth/routes.go new file mode 100644 index 0000000..510601a --- /dev/null +++ b/internal/auth/routes.go @@ -0,0 +1,21 @@ +package auth + +import ( + "gitea.local/admin/hspguard/internal/repository" + "github.com/go-chi/chi/v5" +) + +type AuthHandler struct { + repo *repository.Queries +} + +func NewAuthHandler(repo *repository.Queries) *AuthHandler { + return &AuthHandler{ + repo: repo, + } +} + +func (h *AuthHandler) RegisterRoutes(router chi.Router, api chi.Router) { + +} +