From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [138.197.159.143]) by gnuweeb.org (Postfix) with ESMTPSA id 37F9C7E5EB; Sun, 12 Jun 2022 12:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1655035651; bh=e7ES4v2a6foAaf7MxaH5xBV3+7J4dKBpvVKQv3Uu/Vg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NbrieflLmalt8ZGI45azeoRLlkaYn26jIUSmdteFeZHSrJHtG41RfVfS5VstXWFRq e7TMs61aej1QfWd0FiZ+81HTmPPgq6pmfdIEdf9u7XheEucb/EB/qiA+mB/0qDONi+ 6L60vf6o2HXu92bA2e7yptsVMRTG2JbDfHk2ClyhkYsZgBSCWqxoqE2dKeKbcCQfj+ LlkDfPQ2nTlNK3IJCcB2dSxVtpHIbtD0Z8zTaMnQhwKe96LfW5mzFeiYWatNK+bN5D GzY7W3Svmi3zedBigDsy2tgMm4rBJVtDRfZ5w8fVp4TD6rEbz2A6vlPP3zrkyFYbiJ N2yH6bRmzhgWw== From: Alviro Iskandar Setiawan To: "Fernanda Ma'rouf" , Akiekano Cc: Alviro Iskandar Setiawan , "GNU/Weeb Mailing List" , Ammar Faizi , Ammar Alifian Fahdan , Irvan Malik Azantha , Khoiri , Muhammad Irvan Hakim Subject: [PATCH buubuu v1 07/10] server: Add route '/' to load the Index Date: Sun, 12 Jun 2022 12:07:17 +0000 Message-Id: <20220612120720.2750101-7-alviro.iskandar@gnuweeb.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Make the root URI show our index page. Signed-off-by: Alviro Iskandar Setiawan --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index dbdd2c2..30ec16b 100644 --- a/server.go +++ b/server.go @@ -26,6 +26,7 @@ func main() { r := gin.Default() r.LoadHTMLGlob("view/*.html") r.Static("/assets", "./assets") + r.GET("/", authController.Index) authRoutes := r.Group("auth") { -- Alviro Iskandar Setiawan