update: remove fiber's log module

This commit is contained in:
ngn
2024-03-19 23:16:26 +03:00
parent ce2a577f97
commit 275053ddb3
6 changed files with 31 additions and 22 deletions

View File

@ -1,15 +1,16 @@
package routes
import (
"log"
"git.matterlinux.xyz/Matter/website/lib"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/log"
)
func IndexRoute(c *fiber.Ctx) error{
con, err := lib.GetContent("", "index")
if err != nil {
log.Error("GetContent -> ", err)
log.Printf("GetContent failed: %s", err.Error())
return lib.RenderError(c, 500)
}