website/routes/download.go
2024-05-05 21:22:45 +03:00

21 lines
373 B
Go

package routes
import (
"log"
"git.matterlinux.xyz/Matter/website/lib"
"github.com/gofiber/fiber/v2"
)
func DownloadRoute(c *fiber.Ctx) error{
con, err := lib.GetContent("", "download")
if err != nil {
log.Printf("GetContent failed: %s", err.Error())
return lib.RenderError(c, 500)
}
return c.Render("download", fiber.Map{
"content": con,
})
}