Add add-player modal and player bar button setup.

This commit is contained in:
MaxJa4
2024-01-15 11:26:55 +01:00
parent 65d3d994d7
commit 04a2a2815d
7 changed files with 139 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ func main() {
models.ConnectDatabase()
f, _ := os.OpenFile("isc_rest.log", os.O_RDWR|os.O_APPEND, 0660)
f, _ := os.OpenFile("isc_rest.log", os.O_RDWR|os.O_APPEND|os.O_CREATE, 0660)
utils.GinWriter = io.MultiWriter(f, os.Stdout)
router.Use(
gin.LoggerWithWriter(utils.GinWriter, "/update"),
@@ -40,6 +40,7 @@ func main() {
"./templates/modals/delete_clan.html",
"./templates/modals/add_clan.html",
"./templates/modals/edit_clan.html",
"./templates/modals/add_player.html",
"./templates/components/header.html",
}
tmpl, err := template.ParseFiles(files...)