Explorar el Código

Fix endpoint for AddStudent client api

Andrea Fazzi hace 3 años
padre
commit
638038ece7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/client.go

+ 1 - 1
client/client.go

@@ -444,7 +444,7 @@ func (c *Client) AddStudent(student *orm.Student) (uint, error) {
 	if err != nil {
 		return 0, err
 	}
-	resp, err := c.SendRequest("POST", "/api/students/add/?format=json", data)
+	resp, err := c.SendRequest("POST", "/api/students/create/?format=json", data)
 	if err != nil {
 		return 0, err
 	}