🗃️ insert questions & answers
Co-authored-by: haraldnilsen <harald_998@hotmail.com> Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
5f1790d8b6
commit
c0aa51902c
4 changed files with 1074 additions and 37 deletions
|
@ -35,7 +35,7 @@ type Evaluation struct {
|
|||
|
||||
func main() {
|
||||
router := gin.Default()
|
||||
// router.Use(cors.Default())
|
||||
//router.Use(cors.Default())
|
||||
|
||||
router.GET("/hello", func(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"hello":"world"})
|
||||
|
@ -148,6 +148,6 @@ func main() {
|
|||
})
|
||||
|
||||
// Run the server on port 8080
|
||||
// db.SetupDb()
|
||||
//db.SetupDb()
|
||||
router.Run(":8080")
|
||||
}
|
||||
|
|
Reference in a new issue