From 795222f342a14831c1b4a32affe9ae6d0c8e079f Mon Sep 17 00:00:00 2001 From: Lilleman Date: Sat, 22 Jan 2022 15:43:33 +0100 Subject: [PATCH] Updated module path to change to gitea --- go.mod | 2 +- src/db/renewalTokens.go | 2 +- src/handlers/helpers.go | 2 +- src/handlers/post.go | 4 ++-- src/handlers/put.go | 2 +- src/handlers/types.go | 2 +- src/main.go | 8 ++++---- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index e6112da..6978857 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.larvit.se/power-plan/auth-api +module gitea.larvit.se/pwrpln/auth-api go 1.17 diff --git a/src/db/renewalTokens.go b/src/db/renewalTokens.go index 8034225..0ed6871 100644 --- a/src/db/renewalTokens.go +++ b/src/db/renewalTokens.go @@ -3,7 +3,7 @@ package db import ( "context" - "gitlab.larvit.se/power-plan/auth-api/src/utils" + "gitea.larvit.se/pwrpln/auth-api/src/utils" ) // RenewalTokenCreate obtain a new renewal token diff --git a/src/handlers/helpers.go b/src/handlers/helpers.go index 8f5e0c9..632e933 100644 --- a/src/handlers/helpers.go +++ b/src/handlers/helpers.go @@ -5,9 +5,9 @@ import ( "strings" "time" + "gitea.larvit.se/pwrpln/auth-api/src/db" jwt "github.com/dgrijalva/jwt-go" "github.com/gofiber/fiber/v2" - "gitlab.larvit.se/power-plan/auth-api/src/db" ) func (h Handlers) returnTokens(account db.Account, c *fiber.Ctx) error { diff --git a/src/handlers/post.go b/src/handlers/post.go index 02315a2..895c163 100644 --- a/src/handlers/post.go +++ b/src/handlers/post.go @@ -3,10 +3,10 @@ package handlers import ( "strings" + "gitea.larvit.se/pwrpln/auth-api/src/db" + "gitea.larvit.se/pwrpln/auth-api/src/utils" "github.com/gofiber/fiber/v2" "github.com/google/uuid" - "gitlab.larvit.se/power-plan/auth-api/src/db" - "gitlab.larvit.se/power-plan/auth-api/src/utils" ) type AccountInput struct { diff --git a/src/handlers/put.go b/src/handlers/put.go index 8f17964..1d7b275 100644 --- a/src/handlers/put.go +++ b/src/handlers/put.go @@ -1,9 +1,9 @@ package handlers import ( + "gitea.larvit.se/pwrpln/auth-api/src/db" "github.com/gofiber/fiber/v2" "github.com/google/uuid" - "gitlab.larvit.se/power-plan/auth-api/src/db" ) // AccountUpdateFields godoc diff --git a/src/handlers/types.go b/src/handlers/types.go index 0060a43..a471d4c 100644 --- a/src/handlers/types.go +++ b/src/handlers/types.go @@ -1,8 +1,8 @@ package handlers import ( + "gitea.larvit.se/pwrpln/auth-api/src/db" jwt "github.com/dgrijalva/jwt-go" - "gitlab.larvit.se/power-plan/auth-api/src/db" "go.uber.org/zap" ) diff --git a/src/main.go b/src/main.go index 359a0fc..217fe86 100644 --- a/src/main.go +++ b/src/main.go @@ -6,18 +6,18 @@ import ( "strings" "time" + "gitea.larvit.se/pwrpln/auth-api/src/db" + h "gitea.larvit.se/pwrpln/auth-api/src/handlers" + "gitea.larvit.se/pwrpln/auth-api/src/utils" swagger "github.com/arsmn/fiber-swagger/v2" "github.com/gofiber/fiber/v2" "github.com/google/uuid" "github.com/jackc/pgx/v4/pgxpool" "github.com/joho/godotenv" - "gitlab.larvit.se/power-plan/auth-api/src/db" - h "gitlab.larvit.se/power-plan/auth-api/src/handlers" - "gitlab.larvit.se/power-plan/auth-api/src/utils" "go.uber.org/zap" // docs are generated by Swag CLI, you have to import them. - _ "gitlab.larvit.se/power-plan/auth-api/src/docs" + _ "gitea.larvit.se/pwrpln/auth-api/src/docs" ) // Don't put in utils, because it creates import cycle with db... just left it here for now