chore: update import url (sorry gitlab, codeberg is just better)

This commit is contained in:
Sam 2022-05-14 16:52:08 +02:00
parent ca2cf9e06f
commit 6fdf23eb1a
13 changed files with 22 additions and 22 deletions

View file

@ -6,8 +6,8 @@ import (
"os"
"os/signal"
"gitlab.com/1f320/pronouns/backend/log"
"gitlab.com/1f320/pronouns/backend/server"
"codeberg.org/u1f320/pronouns.cc/backend/log"
"codeberg.org/u1f320/pronouns.cc/backend/server"
_ "github.com/joho/godotenv/autoload"
)

View file

@ -1,10 +1,10 @@
package main
import (
"codeberg.org/u1f320/pronouns.cc/backend/routes/auth"
"codeberg.org/u1f320/pronouns.cc/backend/routes/user"
"codeberg.org/u1f320/pronouns.cc/backend/server"
"github.com/go-chi/chi/v5"
"gitlab.com/1f320/pronouns/backend/routes/auth"
"gitlab.com/1f320/pronouns/backend/routes/user"
"gitlab.com/1f320/pronouns/backend/server"
)
// mountRoutes mounts all API routes on the server's router.

View file

@ -5,11 +5,11 @@ import (
"net/http"
"os"
"codeberg.org/u1f320/pronouns.cc/backend/db"
"codeberg.org/u1f320/pronouns.cc/backend/log"
"codeberg.org/u1f320/pronouns.cc/backend/server"
"github.com/bwmarrin/discordgo"
"github.com/go-chi/render"
"gitlab.com/1f320/pronouns/backend/db"
"gitlab.com/1f320/pronouns/backend/log"
"gitlab.com/1f320/pronouns/backend/server"
"golang.org/x/oauth2"
)

View file

@ -3,11 +3,11 @@ package auth
import (
"net/http"
"codeberg.org/u1f320/pronouns.cc/backend/log"
"codeberg.org/u1f320/pronouns.cc/backend/server"
"emperror.dev/errors"
"github.com/go-chi/chi/v5"
"github.com/go-chi/render"
"gitlab.com/1f320/pronouns/backend/log"
"gitlab.com/1f320/pronouns/backend/server"
)
type Server struct {

View file

@ -3,12 +3,12 @@ package user
import (
"net/http"
"codeberg.org/u1f320/pronouns.cc/backend/db"
"codeberg.org/u1f320/pronouns.cc/backend/log"
"codeberg.org/u1f320/pronouns.cc/backend/server"
"github.com/go-chi/chi/v5"
"github.com/go-chi/render"
"github.com/rs/xid"
"gitlab.com/1f320/pronouns/backend/db"
"gitlab.com/1f320/pronouns/backend/log"
"gitlab.com/1f320/pronouns/backend/server"
)
type GetUserResponse struct {

View file

@ -1,8 +1,8 @@
package user
import (
"codeberg.org/u1f320/pronouns.cc/backend/server"
"github.com/go-chi/chi/v5"
"gitlab.com/1f320/pronouns/backend/server"
)
type Server struct {

View file

@ -4,8 +4,8 @@ import (
"context"
"net/http"
"codeberg.org/u1f320/pronouns.cc/backend/server/auth"
"github.com/go-chi/render"
"gitlab.com/1f320/pronouns/backend/server/auth"
)
// maybeAuth is a globally-used middleware.

View file

@ -6,10 +6,10 @@ import (
"os"
"time"
"codeberg.org/u1f320/pronouns.cc/backend/log"
"emperror.dev/errors"
"github.com/golang-jwt/jwt/v4"
"github.com/rs/xid"
"gitlab.com/1f320/pronouns/backend/log"
)
// Claims are the claims used in a token.

View file

@ -4,8 +4,8 @@ import (
"fmt"
"net/http"
"codeberg.org/u1f320/pronouns.cc/backend/log"
"github.com/go-chi/render"
"gitlab.com/1f320/pronouns/backend/log"
)
// WrapHandler wraps a modified http.HandlerFunc into a stdlib-compatible one.

View file

@ -3,10 +3,10 @@ package server
import (
"os"
"codeberg.org/u1f320/pronouns.cc/backend/db"
"codeberg.org/u1f320/pronouns.cc/backend/server/auth"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"gitlab.com/1f320/pronouns/backend/db"
"gitlab.com/1f320/pronouns/backend/server/auth"
)
// Revision is the git commit, filled at build time