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.
This commit is contained in:
Marvin Zhang
2025-04-23 15:50:10 +08:00
parent f28720ab67
commit fdd0595f49

View File

@@ -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,
},
{