dashboard: generate a special teams.json with members for trophee scene
This commit is contained in:
parent
b9fa5accff
commit
66a72633d6
4 changed files with 32 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue