diff --git a/pkg/router/router.go b/pkg/router/router.go index 3cb4546..2c9215f 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -245,7 +245,7 @@ func NewRouter() *gin.Engine { importRoute.POST("data/confirm", imports.WorkConfirm) } //้™ๆ€ๆ–‡ไปถ - r.StaticFS("/api/static", http.Dir("./runtime")) + r.StaticFS("/api/fiee/static", http.Dir("./runtime")) r.NoRoute(func(c *gin.Context) { c.JSON(http.StatusNotFound, gin.H{ "status": 1, diff --git a/pkg/service/bundle/bundleBalance.go b/pkg/service/bundle/bundleBalance.go index babb77f..6108703 100644 --- a/pkg/service/bundle/bundleBalance.go +++ b/pkg/service/bundle/bundleBalance.go @@ -291,7 +291,7 @@ func BundleExport(ctx *gin.Context) { service.Error(ctx, err) return } - var exportUrl string = fmt.Sprintf("/static/%s", strings.Replace(filePath, "./runtime/", "", 1)) + var exportUrl string = fmt.Sprintf("%s:%s/api/fiee/static/%s",ctx.Request.URL.Scheme, ctx.Request.Host,strings.Replace(filePath, "./runtime/", "", 1)) service.Success(ctx, gin.H{ "url": exportUrl, })