🔥 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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"helseveileder/db"
|
"helseveileder/db"
|
||||||
|
|
||||||
|
@ -19,13 +18,6 @@ type FormData struct {
|
||||||
func main() {
|
func main() {
|
||||||
router := gin.Default()
|
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
|
// Info about user
|
||||||
router.POST("/submitform", func(c *gin.Context) {
|
router.POST("/submitform", func(c *gin.Context) {
|
||||||
|
|
||||||
|
@ -42,5 +34,5 @@ func main() {
|
||||||
|
|
||||||
// Run the server on port 8080
|
// Run the server on port 8080
|
||||||
router.Run(":8080")
|
router.Run(":8080")
|
||||||
// db.SetupDb()
|
//db.SetupDb()
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue