mirror of
https://github.com/Starlio-app/StarlioX
synced 2025-02-24 23:31:26 +03:00
add favorites image
This commit is contained in:
parent
d054fb63a9
commit
f9022a5182
4 changed files with 255 additions and 0 deletions
15
web/page/favorite.go
Normal file
15
web/page/favorite.go
Normal 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")
|
||||
}
|
Loading…
Add table
Reference in a new issue