forked from mirrors/pronouns.cc
chore: update import url (sorry gitlab, codeberg is just better)
This commit is contained in:
parent
ca2cf9e06f
commit
6fdf23eb1a
13 changed files with 22 additions and 22 deletions
2
Makefile
2
Makefile
|
@ -4,7 +4,7 @@ migrate:
|
||||||
|
|
||||||
.PHONY: backend
|
.PHONY: backend
|
||||||
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
|
.PHONY: frontend
|
||||||
frontend:
|
frontend:
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
|
||||||
"gitlab.com/1f320/pronouns/backend/log"
|
"codeberg.org/u1f320/pronouns.cc/backend/log"
|
||||||
"gitlab.com/1f320/pronouns/backend/server"
|
"codeberg.org/u1f320/pronouns.cc/backend/server"
|
||||||
|
|
||||||
_ "github.com/joho/godotenv/autoload"
|
_ "github.com/joho/godotenv/autoload"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
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"
|
"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.
|
// mountRoutes mounts all API routes on the server's router.
|
||||||
|
|
|
@ -5,11 +5,11 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"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/bwmarrin/discordgo"
|
||||||
"github.com/go-chi/render"
|
"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"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@ package auth
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"codeberg.org/u1f320/pronouns.cc/backend/log"
|
||||||
|
"codeberg.org/u1f320/pronouns.cc/backend/server"
|
||||||
"emperror.dev/errors"
|
"emperror.dev/errors"
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/go-chi/render"
|
"github.com/go-chi/render"
|
||||||
"gitlab.com/1f320/pronouns/backend/log"
|
|
||||||
"gitlab.com/1f320/pronouns/backend/server"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
|
|
@ -3,12 +3,12 @@ package user
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"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/chi/v5"
|
||||||
"github.com/go-chi/render"
|
"github.com/go-chi/render"
|
||||||
"github.com/rs/xid"
|
"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 {
|
type GetUserResponse struct {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"codeberg.org/u1f320/pronouns.cc/backend/server"
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"gitlab.com/1f320/pronouns/backend/server"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"codeberg.org/u1f320/pronouns.cc/backend/server/auth"
|
||||||
"github.com/go-chi/render"
|
"github.com/go-chi/render"
|
||||||
"gitlab.com/1f320/pronouns/backend/server/auth"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// maybeAuth is a globally-used middleware.
|
// maybeAuth is a globally-used middleware.
|
||||||
|
|
|
@ -6,10 +6,10 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"codeberg.org/u1f320/pronouns.cc/backend/log"
|
||||||
"emperror.dev/errors"
|
"emperror.dev/errors"
|
||||||
"github.com/golang-jwt/jwt/v4"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
"github.com/rs/xid"
|
"github.com/rs/xid"
|
||||||
"gitlab.com/1f320/pronouns/backend/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Claims are the claims used in a token.
|
// Claims are the claims used in a token.
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"codeberg.org/u1f320/pronouns.cc/backend/log"
|
||||||
"github.com/go-chi/render"
|
"github.com/go-chi/render"
|
||||||
"gitlab.com/1f320/pronouns/backend/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// WrapHandler wraps a modified http.HandlerFunc into a stdlib-compatible one.
|
// WrapHandler wraps a modified http.HandlerFunc into a stdlib-compatible one.
|
||||||
|
|
|
@ -3,10 +3,10 @@ package server
|
||||||
import (
|
import (
|
||||||
"os"
|
"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"
|
||||||
"github.com/go-chi/chi/v5/middleware"
|
"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
|
// Revision is the git commit, filled at build time
|
||||||
|
|
|
@ -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
|
For now though, there's just this landing page <3
|
||||||
(And no, the "Log in" button doesn't do anything either.)
|
(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() {
|
function Home() {
|
||||||
return (
|
return (
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module gitlab.com/1f320/pronouns
|
module codeberg.org/u1f320/pronouns.cc
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue