From d56893e9dd24e6ed9fe3b94967ec8fe4b2e5f547 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Sat, 23 Dec 2023 15:54:23 +0100 Subject: [PATCH] :fire: remove unused code Co-authored-by: haraldnilsen Signed-off-by: Sindre Kjelsrud --- backend/cmd/main.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/backend/cmd/main.go b/backend/cmd/main.go index 96a0f12..24a0cb3 100644 --- a/backend/cmd/main.go +++ b/backend/cmd/main.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "net/http" "helseveileder/db" @@ -19,13 +18,6 @@ type FormData struct { func main() { router := gin.Default() - // Define a basic GET request handler - router.GET("/ping", func(c *gin.Context) { - c.JSON(http.StatusOK, gin.H{ - "message": "pong", - }) - }) - // Info about user router.POST("/submitform", func(c *gin.Context) { @@ -42,5 +34,5 @@ func main() { // Run the server on port 8080 router.Run(":8080") - // db.SetupDb() + //db.SetupDb() }