admin: sync mcq/ucq

This commit is contained in:
nemunaire 2017-12-16 03:39:57 +01:00
parent d6012dfffb
commit b079f7891c
5 changed files with 100 additions and 2 deletions

View file

@ -44,6 +44,8 @@ func init() {
func(exercice fic.Exercice, _ []byte) (interface{}, error) { return sync.SyncExerciceHints(sync.GlobalImporter, exercice), nil })))
router.GET("/api/sync/exercices/:eid/keys", apiHandler(exerciceHandler(
func(exercice fic.Exercice, _ []byte) (interface{}, error) { return sync.SyncExerciceKeys(sync.GlobalImporter, exercice), nil })))
router.GET("/api/sync/exercices/:eid/quiz", apiHandler(exerciceHandler(
func(exercice fic.Exercice, _ []byte) (interface{}, error) { return sync.SyncExerciceMCQ(sync.GlobalImporter, exercice), nil })))
}
func listExercices(_ httprouter.Params, body []byte) (interface{}, error) {