Merge exercices API routes

This commit is contained in:
nemunaire 2016-12-26 01:14:46 +01:00 committed by Pierre-Olivier Mercier
commit 5111143d2a
4 changed files with 57 additions and 102 deletions

View file

@ -27,7 +27,7 @@ type uploadedFile struct {
Parts []string
}
func createExerciceFile(theme fic.Theme, exercice fic.Exercice, body []byte) (interface{}, error) {
func createExerciceFile(exercice fic.Exercice, body []byte) (interface{}, error) {
var uf uploadedFile
if err := json.Unmarshal(body, &uf); err != nil {
return nil, err