StarlioX/web/page/favorite.go
2022-12-15 21:09:37 +03:00

15 lines
280 B
Go

package page
import (
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2"
)
func Favorite(c *fiber.Ctx) error {
con := functions.Connected()
if con == false {
return c.SendFile("./web/errors/500.html")
}
return c.SendFile("./web/src/favorite.html")
}