diff --git a/go.work b/go.work index 67600fe6..b13eb807 100644 --- a/go.work +++ b/go.work @@ -1,7 +1,7 @@ go 1.21.2 use ( - lib/router + lib src/product-service src/shoppinglist-service src/user-service diff --git a/lib/router/go.mod b/lib/go.mod similarity index 100% rename from lib/router/go.mod rename to lib/go.mod diff --git a/lib/router/go.sum b/lib/go.sum similarity index 100% rename from lib/router/go.sum rename to lib/go.sum diff --git a/src/http-proxy-service/go.mod b/src/http-proxy-service/go.mod index b552a4bb..9f6e8b3d 100644 --- a/src/http-proxy-service/go.mod +++ b/src/http-proxy-service/go.mod @@ -26,5 +26,5 @@ require ( ) replace ( -"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" => ./../../lib/router +"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" => ./../../lib/router ) diff --git a/src/http-proxy-service/proxy/default_manager.go b/src/http-proxy-service/proxy/default_manager.go index fa1ba6e7..1d06c08c 100644 --- a/src/http-proxy-service/proxy/default_manager.go +++ b/src/http-proxy-service/proxy/default_manager.go @@ -1,7 +1,7 @@ package proxy import ( - router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" + "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" "log" "net/http" "net/http/httputil" diff --git a/src/product-service/api/router/router.go b/src/product-service/api/router/router.go index f476fbc4..3d316667 100644 --- a/src/product-service/api/router/router.go +++ b/src/product-service/api/router/router.go @@ -1,7 +1,7 @@ package router import ( - router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" + "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" "hsfl.de/group6/hsfl-master-ai-cloud-engineering/product-service/prices" "hsfl.de/group6/hsfl-master-ai-cloud-engineering/product-service/products" "net/http" diff --git a/src/product-service/go.mod b/src/product-service/go.mod index 84b85be2..ff38b6de 100644 --- a/src/product-service/go.mod +++ b/src/product-service/go.mod @@ -3,5 +3,5 @@ module hsfl.de/group6/hsfl-master-ai-cloud-engineering/product-service go 1.21 replace ( -"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" => ./../../lib/router +"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" => ./../../lib/router ) \ No newline at end of file diff --git a/src/shoppinglist-service/api/router/router.go b/src/shoppinglist-service/api/router/router.go index b7c0f0a0..36d258b3 100644 --- a/src/shoppinglist-service/api/router/router.go +++ b/src/shoppinglist-service/api/router/router.go @@ -1,7 +1,7 @@ package router import ( - router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" + "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" "hsfl.de/group6/hsfl-master-ai-cloud-engineering/shoppinglist-service/userShoppingList" "hsfl.de/group6/hsfl-master-ai-cloud-engineering/shoppinglist-service/userShoppingListEntry" "net/http" diff --git a/src/shoppinglist-service/go.mod b/src/shoppinglist-service/go.mod index d87c0878..39f54262 100644 --- a/src/shoppinglist-service/go.mod +++ b/src/shoppinglist-service/go.mod @@ -3,5 +3,5 @@ module hsfl.de/group6/hsfl-master-ai-cloud-engineering/shoppinglist-service go 1.21 replace ( -"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" => ./../../lib/router +"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" => ./../../lib/router ) \ No newline at end of file diff --git a/src/user-service/api/router/router.go b/src/user-service/api/router/router.go index 447cac40..4422dad7 100644 --- a/src/user-service/api/router/router.go +++ b/src/user-service/api/router/router.go @@ -1,7 +1,7 @@ package router import ( - router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" + "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" "hsfl.de/group6/hsfl-master-ai-cloud-engineering/user-service/api/handler" "net/http" ) diff --git a/src/user-service/go.mod b/src/user-service/go.mod index 02b9af91..4174f7c2 100644 --- a/src/user-service/go.mod +++ b/src/user-service/go.mod @@ -7,5 +7,5 @@ require ( golang.org/x/crypto v0.14.0 // indirect ) replace ( -"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" => ./../../lib/router +"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" => ./../../lib/router ) \ No newline at end of file diff --git a/src/user-service/main.go b/src/user-service/main.go index 2c8e0fc1..f1f6b3f5 100644 --- a/src/user-service/main.go +++ b/src/user-service/main.go @@ -1,7 +1,7 @@ package main import ( - router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" + "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" "log" "net/http" )