From acfb2cda8bc5f60a0ede71d2d9fdd0561b1c6d6e Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 20 Nov 2023 14:14:00 -0500 Subject: [PATCH] =?UTF-8?q?refactor!:=20renommer=20package=20api=5Fhandler?= =?UTF-8?q?s=20=C3=A0=20apihandler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING: package api_handlers renommé pour apihandler --- Dockerfile | 2 +- api_handlers/api_handlers.go => apihandler/apihandler.go | 2 +- cmd/server.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename api_handlers/api_handlers.go => apihandler/apihandler.go (99%) 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, }