🔥 remove unused code

Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
Sindre Kjelsrud 2023-12-23 15:54:23 +01:00
parent c8590308b0
commit d56893e9dd
Signed by untrusted user who does not match committer: sidski
GPG key ID: D2BBDF3EDE6BA9A6

View file

@ -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()
}