Merge exercices API routes
This commit is contained in:
parent
f008aac04c
commit
5111143d2a
4 changed files with 57 additions and 102 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue