diff --git a/cmd/server/main.go b/cmd/server/main.go index d91ae79..b8259c4 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -43,9 +43,9 @@ func main() { "humanSize": util.HumanSize, }) - r.LoadHTMLGlob("internal/templates/*.html") + r.LoadHTMLGlob("templates/*.html") //r.LoadHTMLGlob("internal/templates/new/*.html") - r.Static("/static", "./internal/static") + r.Static("/static", "/static") r.GET("/ping", func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ diff --git a/internal/static/TOS.txt b/static/TOS.txt similarity index 100% rename from internal/static/TOS.txt rename to static/TOS.txt diff --git a/internal/static/favicon.ico b/static/favicon.ico similarity index 100% rename from internal/static/favicon.ico rename to static/favicon.ico diff --git a/internal/static/logo.png b/static/logo.png similarity index 100% rename from internal/static/logo.png rename to static/logo.png diff --git a/internal/templates/admin.html b/templates/admin.html similarity index 100% rename from internal/templates/admin.html rename to templates/admin.html diff --git a/internal/templates/deleted.html b/templates/deleted.html similarity index 100% rename from internal/templates/deleted.html rename to templates/deleted.html diff --git a/internal/templates/error.html b/templates/error.html similarity index 100% rename from internal/templates/error.html rename to templates/error.html diff --git a/internal/templates/fileNotFound.html b/templates/fileNotFound.html similarity index 100% rename from internal/templates/fileNotFound.html rename to templates/fileNotFound.html diff --git a/internal/templates/index.html b/templates/index.html similarity index 100% rename from internal/templates/index.html rename to templates/index.html diff --git a/internal/templates/login.html b/templates/login.html similarity index 100% rename from internal/templates/login.html rename to templates/login.html diff --git a/internal/templates/old/admin.html b/templates/old/admin.html similarity index 100% rename from internal/templates/old/admin.html rename to templates/old/admin.html diff --git a/internal/templates/old/index.html b/templates/old/index.html similarity index 100% rename from internal/templates/old/index.html rename to templates/old/index.html diff --git a/internal/templates/old/login.html b/templates/old/login.html similarity index 100% rename from internal/templates/old/login.html rename to templates/old/login.html diff --git a/internal/templates/upload.html b/templates/upload.html similarity index 100% rename from internal/templates/upload.html rename to templates/upload.html