dashboard: generate a special teams.json with members for trophee scene

This commit is contained in:
nemunaire 2020-01-30 18:43:44 +01:00
parent b9fa5accff
commit 66a72633d6
4 changed files with 32 additions and 4 deletions

View file

@ -15,7 +15,11 @@ import (
func init() {
router.GET("/api/teams.json", apiHandler(
func(httprouter.Params, []byte) (interface{}, error) {
return fic.ExportTeams()
return fic.ExportTeams(false)
}))
router.GET("/api/teams-members.json", apiHandler(
func(httprouter.Params, []byte) (interface{}, error) {
return fic.ExportTeams(true)
}))
router.GET("/api/teams-binding", apiHandler(
func(httprouter.Params, []byte) (interface{}, error) {