From f3c79dcebf77bd34058412940596cb30632849bb Mon Sep 17 00:00:00 2001 From: perp Date: Thu, 6 Jun 2024 19:32:01 +0100 Subject: [PATCH] Added comments --- internal/router/api/v1/account/login.go | 1 + internal/router/api/v1/account/register.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/router/api/v1/account/login.go b/internal/router/api/v1/account/login.go index cd7399e..57de638 100644 --- a/internal/router/api/v1/account/login.go +++ b/internal/router/api/v1/account/login.go @@ -7,6 +7,7 @@ import ( "golang.org/x/crypto/bcrypt" ) +// Login to an account func Login(ctx *context.Context) { // Store body var body *v1.Register diff --git a/internal/router/api/v1/account/register.go b/internal/router/api/v1/account/register.go index 0adee89..45039e6 100644 --- a/internal/router/api/v1/account/register.go +++ b/internal/router/api/v1/account/register.go @@ -7,6 +7,7 @@ import ( "golang.org/x/crypto/bcrypt" ) +// Register an account func Register(ctx *context.Context) { // Check if registration is disabled if ctx.Config.Auth.Register {