From a6d8d7697cdba52736057783d0a78e5a68d9753e Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Fri, 10 Mar 2023 17:56:19 +0530 Subject: [PATCH] totally didnt forget to rename shit --- pages/about.go | 6 +++--- views/{about.go => about.html} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename views/{about.go => about.html} (100%) diff --git a/pages/about.go b/pages/about.go index ab3ee48..5590dc5 100644 --- a/pages/about.go +++ b/pages/about.go @@ -22,7 +22,7 @@ type PrivacyInfo struct { UserAgent string } -func HandlePrivacy(c *fiber.Ctx) error { +func HandleAbout(c *fiber.Ctx) error { var privacyInfoArray []PrivacyInfo privacyInfoArray = append(privacyInfoArray, PrivacyInfo{ IPAddr: os.Getenv("GOTHUB_IP_LOGGED"), @@ -38,8 +38,8 @@ func HandlePrivacy(c *fiber.Ctx) error { GoVersion: runtime.Version(), }) - return c.Render("privacy", fiber.Map{ - "title": "Instance Privacy", + return c.Render("about", fiber.Map{ + "title": "About this instance", "privacyInformation": privacyInfoArray, }) } diff --git a/views/about.go b/views/about.html similarity index 100% rename from views/about.go rename to views/about.html