* Complete add-player modal
* New player listing * New player action layout
This commit is contained in:
10
main.go
10
main.go
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user