From fdd0595f49e36b2ba24c85223317ed16ec32a1b1 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 23 Apr 2025 15:50:10 +0800 Subject: [PATCH] refactor: update route naming for clarity in router.go - Renamed route from "Get Spider Files" to "List Spider Files" for improved clarity. - Enhanced description to specify that it lists files given a directory path in the spider project. --- core/controllers/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/controllers/router.go b/core/controllers/router.go index 0370e6fd..86609b07 100644 --- a/core/controllers/router.go +++ b/core/controllers/router.go @@ -293,8 +293,8 @@ func InitRoutes(app *gin.Engine) (err error) { { Method: http.MethodGet, Path: "/:id/files/list", - Name: "Get Spider Files", - Description: "Get a list of files in a spider directory", + Name: "List Spider Files", + Description: "List the files given a directory path in the spider project", HandlerFunc: GetSpiderFiles, }, {