changed groups root

This commit is contained in:
2024-05-25 01:52:05 +03:00
parent b799ce4424
commit 39f8b02c73
3 changed files with 4 additions and 4 deletions

View File

@@ -147,6 +147,6 @@ func LoadBrowsersGroup(group *gin.RouterGroup, mongo_client *mongo.Client, confi
connection := Connection{databaseConnection: mongo_client, dockerClient: apiClient}
authConnection := auth.Connection{DatabaseConnection: mongo_client}
group.GET("/", auth.AuthorizedTo(0), connection.GetBrowsers)
group.GET("", auth.AuthorizedTo(0), connection.GetBrowsers)
group.POST("/:server_id/stop", auth.AuthorizedTo(models.Browse, authConnection.ServerAuthorized(models.Browse)), connection.StopBrowser)
}

View File

@@ -63,5 +63,5 @@ func LoadeImagesGroup(group *gin.RouterGroup, mongo_client *mongo.Client, config
defer apiClient.Close()
connection := Connection{databaseConnection: mongo_client, dockerClient: apiClient}
group.GET("/", auth.AuthorizedTo(0), connection.GetImages)
group.GET("", auth.AuthorizedTo(0), connection.GetImages)
}