Updated module path to change to gitea

This commit is contained in:
Lilleman auf Larv 2022-01-22 15:43:33 +01:00
parent 0cdb52754f
commit 795222f342
7 changed files with 11 additions and 11 deletions

2
go.mod
View File

@ -1,4 +1,4 @@
module gitlab.larvit.se/power-plan/auth-api module gitea.larvit.se/pwrpln/auth-api
go 1.17 go 1.17

View File

@ -3,7 +3,7 @@ package db
import ( import (
"context" "context"
"gitlab.larvit.se/power-plan/auth-api/src/utils" "gitea.larvit.se/pwrpln/auth-api/src/utils"
) )
// RenewalTokenCreate obtain a new renewal token // RenewalTokenCreate obtain a new renewal token

View File

@ -5,9 +5,9 @@ import (
"strings" "strings"
"time" "time"
"gitea.larvit.se/pwrpln/auth-api/src/db"
jwt "github.com/dgrijalva/jwt-go" jwt "github.com/dgrijalva/jwt-go"
"github.com/gofiber/fiber/v2" "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 { func (h Handlers) returnTokens(account db.Account, c *fiber.Ctx) error {

View File

@ -3,10 +3,10 @@ package handlers
import ( import (
"strings" "strings"
"gitea.larvit.se/pwrpln/auth-api/src/db"
"gitea.larvit.se/pwrpln/auth-api/src/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/google/uuid" "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 { type AccountInput struct {

View File

@ -1,9 +1,9 @@
package handlers package handlers
import ( import (
"gitea.larvit.se/pwrpln/auth-api/src/db"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/google/uuid" "github.com/google/uuid"
"gitlab.larvit.se/power-plan/auth-api/src/db"
) )
// AccountUpdateFields godoc // AccountUpdateFields godoc

View File

@ -1,8 +1,8 @@
package handlers package handlers
import ( import (
"gitea.larvit.se/pwrpln/auth-api/src/db"
jwt "github.com/dgrijalva/jwt-go" jwt "github.com/dgrijalva/jwt-go"
"gitlab.larvit.se/power-plan/auth-api/src/db"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -6,18 +6,18 @@ import (
"strings" "strings"
"time" "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" swagger "github.com/arsmn/fiber-swagger/v2"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/jackc/pgx/v4/pgxpool" "github.com/jackc/pgx/v4/pgxpool"
"github.com/joho/godotenv" "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" "go.uber.org/zap"
// docs are generated by Swag CLI, you have to import them. // 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 // Don't put in utils, because it creates import cycle with db... just left it here for now