refactor(backend): remove unused config route and associated controller

This commit is contained in:
keven1024
2025-05-14 17:53:03 +08:00
parent 597a548111
commit d5d4c64bf2
2 changed files with 0 additions and 16 deletions

View File

@@ -1,15 +0,0 @@
package controllers
import (
"backend/internal/utils"
"github.com/labstack/echo/v4"
)
func GetConfig(c echo.Context) error {
return utils.HTTPSuccessHandler(c, map[string]any{
"site_title": utils.GetEnv("site_title"),
"site_desc": utils.GetEnv("site_desc"),
"site_url": utils.GetEnv("site_url"),
})
}

View File

@@ -19,7 +19,6 @@ func main() {
e.POST("/file/finish", controllers.FinishUploadTask)
e.GET("/share/:id", controllers.GetShareInfo)
e.POST("/share", controllers.CreateShareInfo)
e.GET("/config", controllers.GetConfig)
e.GET("/download", controllers.DownloadShare)
e.POST("/download", controllers.VaildateShare)