diff --git a/apimodels/register.go b/apimodels/register.go index 8012f97..307a8c4 100644 --- a/apimodels/register.go +++ b/apimodels/register.go @@ -1,6 +1,6 @@ package apimodels -type RegisterVolunteerModel struct { +type RegisterVolunteer struct { EventID int `json:"eventId"` VolunteerID int `json:"volunteerId"` } diff --git a/main.go b/main.go index 384700d..da7737b 100644 --- a/main.go +++ b/main.go @@ -92,7 +92,7 @@ func bind(e *echo.Echo, eventStore store.EventStore) { }) e.POST("/api/event/register", func(c echo.Context) error { - registerReq := new(apimodels.RegisterVolunteerModel) + registerReq := new(apimodels.RegisterVolunteer) if err := c.Bind(registerReq); err != nil { return c.JSON(http.StatusBadRequest, err) }