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

@ -4,7 +4,7 @@ migrate:
.PHONY: backend
backend:
go build -v -o api -ldflags="-buildid= -X gitlab.com/1f320/pronouns/backend/server.Revision=`git rev-parse --short HEAD`" ./backend
go build -v -o api -ldflags="-buildid= -X codeberg.org/u1f320/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD`" ./backend
.PHONY: frontend
frontend:

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

View file

@ -10,7 +10,7 @@ useful for plurality ([what?](https://morethanone.info/)) and kin, or even just
For now though, there's just this landing page <3
(And no, the "Log in" button doesn't do anything either.)
Check out the (work in progress) source code on [GitLab](https://gitlab.com/1f320/pronouns)!`;
Check out the (work in progress) source code on [Codeberg](https://codeberg.org/u1f320/pronouns.cc)!`;
function Home() {
return (

2
go.mod
View file

@ -1,4 +1,4 @@
module gitlab.com/1f320/pronouns
module codeberg.org/u1f320/pronouns.cc
go 1.18