From d9e27aa0a6f5ff7bae405d9778f563e79c5bc9e6 Mon Sep 17 00:00:00 2001 From: pluja Date: Mon, 9 Dec 2024 16:50:58 +0100 Subject: [PATCH] add v1 to api route --- src/internal/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/server/server.go b/src/internal/server/server.go index 61b7d64..a931944 100644 --- a/src/internal/server/server.go +++ b/src/internal/server/server.go @@ -53,7 +53,7 @@ func StartServer() error { } // API zone - management := r.Party("/api/", apiKeyAuth(apiKey)) + management := r.Party("/api/v1", apiKeyAuth(apiKey)) management.Use(apiKeyAuth(apiKey)) { management.Post("attribute", handlers.ApiAttributePost)