diff --git a/app/app-context.go b/app/app-context.go index 71a8309..cc1f03e 100644 --- a/app/app-context.go +++ b/app/app-context.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/models" ) type contextKey struct { diff --git a/app/auth.go b/app/auth.go index cbe2f40..cdc4c28 100644 --- a/app/auth.go +++ b/app/auth.go @@ -7,11 +7,11 @@ import ( "log" "os" + "git.farahty.com/nimer/go-mongo/models" "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/handler/transport" "github.com/casbin/casbin/v2" mongodbadapter "github.com/casbin/mongodb-adapter/v3" - "github.com/farahty/go-mongo/models" "github.com/golang-jwt/jwt/v4" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo/options" diff --git a/app/helpers.go b/app/helpers.go index f66e0ef..10331f3 100644 --- a/app/helpers.go +++ b/app/helpers.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/models" "github.com/golang-jwt/jwt/v4" "github.com/mitchellh/mapstructure" ) diff --git a/app/loaders.go b/app/loaders.go index 633d1df..ed91ca3 100644 --- a/app/loaders.go +++ b/app/loaders.go @@ -6,7 +6,7 @@ import ( "net/http" "reflect" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/models" "github.com/graph-gophers/dataloader" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/controllers/user.go b/controllers/user.go index 70d4d29..15bae0e 100644 --- a/controllers/user.go +++ b/controllers/user.go @@ -4,7 +4,7 @@ import ( "encoding/json" "net/http" - userService "github.com/farahty/go-mongo/services/user" + userService "git.farahty.com/nimer/go-mongo/services/user" "github.com/go-chi/chi/v5" ) diff --git a/directives/auth.go b/directives/auth.go index a56246b..5e89ab9 100644 --- a/directives/auth.go +++ b/directives/auth.go @@ -4,8 +4,8 @@ import ( "context" "fmt" + "git.farahty.com/nimer/go-mongo/app" "github.com/99designs/gqlgen/graphql" - "github.com/farahty/go-mongo/app" ) func Auth(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) { diff --git a/generated/generated.go b/generated/generated.go index 7f59ba2..c19d48e 100644 --- a/generated/generated.go +++ b/generated/generated.go @@ -15,8 +15,8 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/introspection" - "github.com/farahty/go-mongo/app" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/app" + "git.farahty.com/nimer/go-mongo/models" gqlparser "github.com/vektah/gqlparser/v2" "github.com/vektah/gqlparser/v2/ast" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/go.mod b/go.mod index 24ca65b..bc1c056 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/farahty/go-mongo +module git.farahty.com/nimer/go-mongo go 1.23.0 diff --git a/main.go b/main.go index 2d91ad0..c06085b 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "log" "net/http" - "github.com/farahty/go-mongo/app" + "git.farahty.com/nimer/go-mongo/app" "github.com/fatih/color" "github.com/joho/godotenv" "github.com/redis/go-redis/v9" diff --git a/resolvers/auth.resolvers.go b/resolvers/auth.resolvers.go index 63e0bf5..751f5c5 100644 --- a/resolvers/auth.resolvers.go +++ b/resolvers/auth.resolvers.go @@ -7,9 +7,9 @@ package resolvers import ( "context" - "github.com/farahty/go-mongo/generated" - "github.com/farahty/go-mongo/models" - authService "github.com/farahty/go-mongo/services/auth" + "git.farahty.com/nimer/go-mongo/generated" + "git.farahty.com/nimer/go-mongo/models" + authService "git.farahty.com/nimer/go-mongo/services/auth" ) // Login is the resolver for the login field. diff --git a/resolvers/category.resolvers.go b/resolvers/category.resolvers.go index 5d1ba11..4533f5b 100644 --- a/resolvers/category.resolvers.go +++ b/resolvers/category.resolvers.go @@ -7,10 +7,10 @@ package resolvers import ( "context" - "github.com/farahty/go-mongo/generated" - "github.com/farahty/go-mongo/models" - categoryService "github.com/farahty/go-mongo/services/category" - userService "github.com/farahty/go-mongo/services/user" + "git.farahty.com/nimer/go-mongo/generated" + "git.farahty.com/nimer/go-mongo/models" + categoryService "git.farahty.com/nimer/go-mongo/services/category" + userService "git.farahty.com/nimer/go-mongo/services/user" "go.mongodb.org/mongo-driver/bson/primitive" ) diff --git a/resolvers/todo.resolvers.go b/resolvers/todo.resolvers.go index e5a3dfc..50d4940 100644 --- a/resolvers/todo.resolvers.go +++ b/resolvers/todo.resolvers.go @@ -8,10 +8,10 @@ import ( "context" "encoding/json" - "github.com/farahty/go-mongo/generated" - "github.com/farahty/go-mongo/models" - todoService "github.com/farahty/go-mongo/services/todo" - userService "github.com/farahty/go-mongo/services/user" + "git.farahty.com/nimer/go-mongo/generated" + "git.farahty.com/nimer/go-mongo/models" + todoService "git.farahty.com/nimer/go-mongo/services/todo" + userService "git.farahty.com/nimer/go-mongo/services/user" "go.mongodb.org/mongo-driver/bson/primitive" ) diff --git a/resolvers/user.resolvers.go b/resolvers/user.resolvers.go index e5ae0c9..b5dd400 100644 --- a/resolvers/user.resolvers.go +++ b/resolvers/user.resolvers.go @@ -7,9 +7,9 @@ package resolvers import ( "context" - "github.com/farahty/go-mongo/generated" - "github.com/farahty/go-mongo/models" - userService "github.com/farahty/go-mongo/services/user" + "git.farahty.com/nimer/go-mongo/generated" + "git.farahty.com/nimer/go-mongo/models" + userService "git.farahty.com/nimer/go-mongo/services/user" ) // CreateUser is the resolver for the createUser field. diff --git a/router.go b/router.go index f547147..03d495f 100644 --- a/router.go +++ b/router.go @@ -5,16 +5,16 @@ import ( "os" "time" + "git.farahty.com/nimer/go-mongo/app" + "git.farahty.com/nimer/go-mongo/controllers" + "git.farahty.com/nimer/go-mongo/directives" + "git.farahty.com/nimer/go-mongo/generated" "github.com/99designs/gqlgen/graphql/handler" "github.com/99designs/gqlgen/graphql/handler/extension" "github.com/99designs/gqlgen/graphql/handler/transport" "github.com/99designs/gqlgen/graphql/playground" - "github.com/farahty/go-mongo/app" - "github.com/farahty/go-mongo/controllers" - "github.com/farahty/go-mongo/directives" - "github.com/farahty/go-mongo/generated" - "github.com/farahty/go-mongo/resolvers" + "git.farahty.com/nimer/go-mongo/resolvers" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" "github.com/go-chi/httprate" diff --git a/services/auth/auth.go b/services/auth/auth.go index 819f10a..fedf850 100644 --- a/services/auth/auth.go +++ b/services/auth/auth.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/farahty/go-mongo/app" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/app" + "git.farahty.com/nimer/go-mongo/models" "go.mongodb.org/mongo-driver/bson" ) diff --git a/services/auth/sucess_login.go b/services/auth/sucess_login.go index 89935df..37fc73e 100644 --- a/services/auth/sucess_login.go +++ b/services/auth/sucess_login.go @@ -5,8 +5,8 @@ import ( "encoding/hex" "os" - "github.com/farahty/go-mongo/app" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/app" + "git.farahty.com/nimer/go-mongo/models" "github.com/google/uuid" "go.mongodb.org/mongo-driver/bson" ) diff --git a/services/category/category.go b/services/category/category.go index 1646faf..a90a1bf 100644 --- a/services/category/category.go +++ b/services/category/category.go @@ -3,8 +3,8 @@ package categoryService import ( "context" - "github.com/farahty/go-mongo/app" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/app" + "git.farahty.com/nimer/go-mongo/models" "github.com/graph-gophers/dataloader" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/services/todo/todo.go b/services/todo/todo.go index 613e640..981ef54 100644 --- a/services/todo/todo.go +++ b/services/todo/todo.go @@ -3,8 +3,8 @@ package todoService import ( "context" - "github.com/farahty/go-mongo/app" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/app" + "git.farahty.com/nimer/go-mongo/models" "github.com/graph-gophers/dataloader" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/services/user/user.go b/services/user/user.go index 0478bb9..e341ae6 100644 --- a/services/user/user.go +++ b/services/user/user.go @@ -3,8 +3,8 @@ package userService import ( "context" - "github.com/farahty/go-mongo/app" - "github.com/farahty/go-mongo/models" + "git.farahty.com/nimer/go-mongo/app" + "git.farahty.com/nimer/go-mongo/models" "github.com/graph-gophers/dataloader" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive"