add favorites image

This commit is contained in:
Данил 2022-12-15 21:09:37 +03:00
parent d054fb63a9
commit f9022a5182
4 changed files with 255 additions and 0 deletions

15
web/page/favorite.go Normal file
View file

@ -0,0 +1,15 @@
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")
}