diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go index a08c858..a2372f3 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "net/http" "github.com/ckrinitsin/go-backend/handlers" + "github.com/ckrinitsin/go-backend/models" "github.com/gin-gonic/gin" ) @@ -15,6 +16,8 @@ var templatesFS embed.FS func main() { r := gin.Default() + models.ConnectDatabase() + tmpl := template.Must(template.ParseFS(templatesFS, "templates/*")) r.SetHTMLTemplate(tmpl) |