🔥 remove unused code
Co-authored-by: haraldnilsen <harald_998@hotmail.com> Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
		
							parent
							
								
									c8590308b0
								
							
						
					
					
						commit
						d56893e9dd
					
				
					 1 changed files with 1 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -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()
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue