From 9d32f773f46f20084a3a16ada920bb9cfb63d98d Mon Sep 17 00:00:00 2001 From: Danil Ivasenko Date: Sat, 18 Mar 2023 16:05:46 +0300 Subject: [PATCH] delete folder, project file optimization --- web/page/about.go | 15 --------------- web/page/favorite.go | 15 --------------- web/page/gallery.go | 15 --------------- web/page/settings.go | 15 --------------- 4 files changed, 60 deletions(-) delete mode 100644 web/page/about.go delete mode 100644 web/page/favorite.go delete mode 100644 web/page/gallery.go delete mode 100644 web/page/settings.go diff --git a/web/page/about.go b/web/page/about.go deleted file mode 100644 index 23b3058..0000000 --- a/web/page/about.go +++ /dev/null @@ -1,15 +0,0 @@ -package page - -import ( - "github.com/Redume/EveryNasa/functions" - "github.com/gofiber/fiber/v2" -) - -func About(c *fiber.Ctx) error { - con := functions.Connected() - if con == false { - return c.SendFile("./web/errors/500.html") - } - - return c.SendFile("./web/src/about.html") -} diff --git a/web/page/favorite.go b/web/page/favorite.go deleted file mode 100644 index 22de2f5..0000000 --- a/web/page/favorite.go +++ /dev/null @@ -1,15 +0,0 @@ -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") -} diff --git a/web/page/gallery.go b/web/page/gallery.go deleted file mode 100644 index 90e53bf..0000000 --- a/web/page/gallery.go +++ /dev/null @@ -1,15 +0,0 @@ -package page - -import ( - "github.com/Redume/EveryNasa/functions" - "github.com/gofiber/fiber/v2" -) - -func Gallery(c *fiber.Ctx) error { - con := functions.Connected() - if con == false { - return c.SendFile("./web/errors/500.html") - } - - return c.SendFile("./web/src/gallery.html") -} diff --git a/web/page/settings.go b/web/page/settings.go deleted file mode 100644 index d3c37dc..0000000 --- a/web/page/settings.go +++ /dev/null @@ -1,15 +0,0 @@ -package page - -import ( - "github.com/Redume/EveryNasa/functions" - "github.com/gofiber/fiber/v2" -) - -func Settings(c *fiber.Ctx) error { - con := functions.Connected() - if con == false { - return c.SendFile("./web/errors/500.html") - } - - return c.SendFile("./web/src/settings.html") -}