* Complete add-player modal

* New player listing
* New player action layout
This commit is contained in:
MaxJa4
2024-01-15 21:26:46 +01:00
parent 04a2a2815d
commit 80d0489b41
16 changed files with 308 additions and 107 deletions

10
main.go
View File

@@ -32,8 +32,6 @@ func main() {
"./templates/index.html",
"./templates/components/home_clan_bar.html",
"./templates/components/opp_clan_bar.html",
"./templates/components/home_player_bar.html",
"./templates/components/opp_player_bar.html",
"./templates/components/home_player_list.html",
"./templates/components/opp_player_list.html",
"./templates/components/bottom_controls.html",
@@ -62,13 +60,19 @@ func main() {
})
router.GET("/clans", controllers.GetAllClans)
router.GET("/clan_options", controllers.GetAllClanOptions)
router.GET("/clans_html", controllers.GetAllClansHTML)
router.GET("/clan/:id", controllers.GetClanByID)
router.POST("/clan", controllers.AddClan)
router.PATCH("/clan/:id", controllers.UpdateClanByID)
router.DELETE("/clan/:id", controllers.DeleteClanByID)
router.GET("/players", controllers.GetAllPlayers)
router.GET("/players_html", controllers.GetPlayersByClanHTML)
router.GET("/player/:id", controllers.GetPlayerByID)
router.GET("/playerid/:name", controllers.GetPlayerIDByName)
router.POST("/player", controllers.AddPlayer)
router.PATCH("/player/:id", controllers.UpdatePlayerByID)
router.DELETE("/player/:id", controllers.DeletePlayerByID)
log.Println("Running on 8000...")
log.Fatal(router.Run(":8000"))