Skip to content

Commit

Permalink
feat: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SShlykov committed May 11, 2024
1 parent 85b53cf commit 55224c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion procima/internal/app/http/v1/const.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package v1

const (
MetricsURL = "/metrics"
BaseURL = "/api/v1"
ImageURL = "/images"
MetricsURL = "/metrics"
ImageUploadURL = ImageURL + UPLOAD

UPLOAD = ":upload"
Expand Down
2 changes: 1 addition & 1 deletion procima/internal/app/http/v1/metrics/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import (
)

func (mc *metricsController) RegisterRoutes(router *gin.RouterGroup) {
router.POST(v1.ImageUploadURL, mc.PrometheusHandler)
router.POST(v1.MetricsURL, mc.PrometheusHandler)
}
3 changes: 2 additions & 1 deletion procima/internal/bootstrap/registry/web_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import (
"net/http"
)

func InitWebServer(logger loggerPkg.Logger, configPath string, metr metrics.Metrics, imgService services.ImageService) (*endpoint.WebServer, error) {
func InitWebServer(logger loggerPkg.Logger, configPath string, metr metrics.Metrics,
imgService services.ImageService) (*endpoint.WebServer, error) {
cfg, err := config.LoadServerConfig(configPath)
if err != nil {
return nil, errors.New("failed to load server config: " + err.Error())
Expand Down

0 comments on commit 55224c3

Please sign in to comment.