MCPcopy Create free account
hub / github.com/browserwing/browserwing / GetScript

Method GetScript

backend/api/handlers.go:654–663  ·  view source on GitHub ↗

GetScript 获取单个脚本详情

(c *gin.Context)

Source from the content-addressed store, hash-verified

652
653// GetScript 获取单个脚本详情
654func (h *Handler) GetScript(c *gin.Context) {
655 id := c.Param("id")
656 script, err := h.db.GetScript(id)
657 if err != nil {
658 c.JSON(http.StatusNotFound, gin.H{"error": "error.scriptNotFound"})
659 return
660 }
661
662 c.JSON(http.StatusOK, script)
663}
664
665// UpdateScript 更新脚本
666func (h *Handler) UpdateScript(c *gin.Context) {

Callers

nothing calls this directly

Calls 1

GetScriptMethod · 0.65

Tested by

no test coverage detected