diff --git a/Dockerfile b/Dockerfile index 9899c40..3384d3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ ADD cmd/ cmd/ ADD api/ api/ -ADD api_handlers/ api_handlers/ +ADD apihandler/ apihandler/ ADD apiresponse/ apiresponse/ diff --git a/api_handlers/api_handlers.go b/apihandler/apihandler.go similarity index 99% rename from api_handlers/api_handlers.go rename to apihandler/apihandler.go index 21ddb63..d3d170f 100644 --- a/api_handlers/api_handlers.go +++ b/apihandler/apihandler.go @@ -1,4 +1,4 @@ -package api_handlers +package apihandler import ( "context" diff --git a/cmd/server.go b/cmd/server.go index 47c61f0..8be7e00 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -18,7 +18,7 @@ import ( "github.com/spf13/viper" "git.agecem.com/agecem/agecem-org/api" - "git.agecem.com/agecem/agecem-org/api_handlers" + "git.agecem.com/agecem/agecem-org/apihandler" "git.agecem.com/agecem/agecem-org/config" "git.agecem.com/agecem/agecem-org/media" "git.agecem.com/agecem/agecem-org/public" @@ -205,7 +205,7 @@ func RunServer() { log.Fatal("Error during NewMediaClientFromViper for API handlers") } - v1Handler := api_handlers.V1Handler{ + v1Handler := apihandler.V1Handler{ Config: cfg, MediaClient: mediaClient, }