From 7a414da9a802d5eeee911b3536790a061e1d7503 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Thu, 29 Jun 2023 23:33:02 +0200 Subject: ref: Move all controller under the same folder Move all controller to the same folder and rename them to service. Moving them to the same folder allow an easier setup for testing. --- cmd/server/main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/server/main.go b/cmd/server/main.go index 76cf0c0..702ca6e 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -17,12 +17,11 @@ import ( "gorm.io/gorm" "git.sr.ht/~gabrielgio/img" - "git.sr.ht/~gabrielgio/img/pkg/components/auth" - "git.sr.ht/~gabrielgio/img/pkg/components/filesystem" "git.sr.ht/~gabrielgio/img/pkg/database/localfs" "git.sr.ht/~gabrielgio/img/pkg/database/repository" "git.sr.ht/~gabrielgio/img/pkg/database/sql" "git.sr.ht/~gabrielgio/img/pkg/ext" + "git.sr.ht/~gabrielgio/img/pkg/service" "git.sr.ht/~gabrielgio/img/pkg/view" "git.sr.ht/~gabrielgio/img/pkg/worker" ) @@ -97,8 +96,8 @@ func main() { // controller var ( - userController = auth.NewController(userRepository, userRepository, hexKey) - fileSystemController = filesystem.NewController(fileSystemRepository) + userController = service.NewAuthController(userRepository, userRepository, hexKey) + fileSystemController = service.NewFileSystemController(fileSystemRepository) ) // view -- cgit v1.2.3