basic code setup

This commit is contained in:
2023-03-28 14:27:59 +11:00
parent 266d60efa6
commit 8dc02a98bd
7 changed files with 386 additions and 0 deletions

22
main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"ccsecrets/controllers"
"ccsecrets/models"
"github.com/gin-gonic/gin"
)
func main() {
models.ConnectDatabase()
r := gin.Default()
public := r.Group("/api")
public.POST("/register", controllers.Register)
r.Run(":8080")
}