fix: moved module namespace to git.dittmar.dev
This commit is contained in:
@@ -5,9 +5,9 @@ import (
|
||||
"log/slog"
|
||||
"net/http"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/request"
|
||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/request"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type AuthHandler struct {
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"log/slog"
|
||||
"net/http"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/request"
|
||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/request"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type ExerciseHandler struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||
)
|
||||
|
||||
type healthResponse struct {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/handler"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/handler"
|
||||
)
|
||||
|
||||
func TestHealthHandler_Success(t *testing.T) {
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type InviteHandler struct {
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"log/slog"
|
||||
"net/http"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/request"
|
||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/request"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type ListHandler struct {
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"log/slog"
|
||||
"net/http"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/request"
|
||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/request"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type UserHandler struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||
)
|
||||
|
||||
type VersionResponse struct {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
func WithJWT(authService *domain.AuthService) func(http.HandlerFunc) http.HandlerFunc {
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"database/sql"
|
||||
"net/http"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/api/handler"
|
||||
"github.com/robindittmar/dttmr-api/internal/api/middleware"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"github.com/robindittmar/dttmr-api/internal/repository"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/handler"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/api/middleware"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/repository"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
"github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type AuthRepo struct {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
var m = pgtype.NewMap()
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type InviteRepo struct {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type ListRepo struct {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
)
|
||||
|
||||
type UserRepo struct {
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||
"github.com/DATA-DOG/go-sqlmock"
|
||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user