add v1 to api route

This commit is contained in:
pluja 2024-12-09 16:50:58 +01:00
parent 651dc8a18f
commit d9e27aa0a6
No known key found for this signature in database

View File

@ -53,7 +53,7 @@ func StartServer() error {
} }
// API zone // API zone
management := r.Party("/api/", apiKeyAuth(apiKey)) management := r.Party("/api/v1", apiKeyAuth(apiKey))
management.Use(apiKeyAuth(apiKey)) management.Use(apiKeyAuth(apiKey))
{ {
management.Post("attribute", handlers.ApiAttributePost) management.Post("attribute", handlers.ApiAttributePost)