feat(api): updated docker logs api

- Refactored docker logs endpoint to use container ID directly.
This commit is contained in:
yusing
2025-09-14 00:10:37 +08:00
parent 1e1999b0af
commit 59cae0967a
2 changed files with 24 additions and 19 deletions

View File

@@ -122,7 +122,7 @@ func NewHandler() *gin.Engine {
{
docker.GET("/containers", dockerApi.Containers)
docker.GET("/info", dockerApi.Info)
docker.GET("/logs/:server/:container", dockerApi.Logs)
docker.GET("/logs/:id", dockerApi.Logs)
}
}