From d45448a662e993becf0fa64fb7809aafb395b186 Mon Sep 17 00:00:00 2001 From: Bram Date: Fri, 20 Mar 2026 14:23:11 +0100 Subject: [PATCH] Fix paths --- cmd/server/main.go | 4 ++-- {internal/static => static}/TOS.txt | 0 {internal/static => static}/favicon.ico | Bin {internal/static => static}/logo.png | Bin {internal/templates => templates}/admin.html | 0 {internal/templates => templates}/deleted.html | 0 {internal/templates => templates}/error.html | 0 {internal/templates => templates}/fileNotFound.html | 0 {internal/templates => templates}/index.html | 0 {internal/templates => templates}/login.html | 0 {internal/templates => templates}/old/admin.html | 0 {internal/templates => templates}/old/index.html | 0 {internal/templates => templates}/old/login.html | 0 {internal/templates => templates}/upload.html | 0 14 files changed, 2 insertions(+), 2 deletions(-) rename {internal/static => static}/TOS.txt (100%) rename {internal/static => static}/favicon.ico (100%) rename {internal/static => static}/logo.png (100%) rename {internal/templates => templates}/admin.html (100%) rename {internal/templates => templates}/deleted.html (100%) rename {internal/templates => templates}/error.html (100%) rename {internal/templates => templates}/fileNotFound.html (100%) rename {internal/templates => templates}/index.html (100%) rename {internal/templates => templates}/login.html (100%) rename {internal/templates => templates}/old/admin.html (100%) rename {internal/templates => templates}/old/index.html (100%) rename {internal/templates => templates}/old/login.html (100%) rename {internal/templates => templates}/upload.html (100%) 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