Skip to content

Commit

Permalink
fix: naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
steph-feng authored and rustamch committed Mar 8, 2024
1 parent 24d8aeb commit c017e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apimodels/getEvent.go → apimodels/create_event.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package apimodels

type GetEvent struct {
type CreateEvent struct {
Name string `json:"name"`
Description string `json:"description"`
StartDate string `json:"startDate"`
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func bind(e *echo.Echo, eventStore store.EventStore) {
})

e.POST("/api/create", func(c echo.Context) error {
event := new(apimodels.GetEvent)
event := new(apimodels.CreateEvent)

// parse request body
bindErr := c.Bind(event)
Expand Down

0 comments on commit c017e15

Please sign in to comment.