admin: score grid is a JSON to display scoring detail for a team
This commit is contained in:
parent
5dbf60eaa2
commit
a1c94d582d
2 changed files with 45 additions and 7 deletions
|
@ -45,6 +45,10 @@ func init() {
|
|||
func(team fic.Team, _ []byte) (interface{}, error) {
|
||||
return team.Delete()
|
||||
})))
|
||||
router.GET("/api/teams/:tid/score-grid.json", apiHandler(teamHandler(
|
||||
func(team fic.Team, _ []byte) (interface{}, error) {
|
||||
return team.ScoreGrid()
|
||||
})))
|
||||
router.GET("/api/teams/:tid/my.json", apiHandler(teamPublicHandler(
|
||||
func(team *fic.Team, _ []byte) (interface{}, error) {
|
||||
return fic.MyJSONTeam(team, true)
|
||||
|
|
Reference in a new issue