Skip to content

Commit 70a08f3

Browse files
committed
fix: get event by id
1 parent 54e1197 commit 70a08f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/serve_http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func registerHandler(app app.App) *mux.Router {
132132
public := v1.PathPrefix("/public").Subrouter()
133133
public.HandleFunc("/storage/{kind}/{path}", app.ImageHandler.GetStorage).Methods(http.MethodGet)
134134
public.HandleFunc("/events", app.EventHandler.GetEvents).Methods(http.MethodGet)
135-
public.HandleFunc("/events/{id}", app.EventHandler.GetEvents).Methods(http.MethodGet)
135+
public.HandleFunc("/events/{id}", app.EventHandler.GetEventByID).Methods(http.MethodGet)
136136
public.HandleFunc("/images", app.ImageHandler.UploadImage).Methods(http.MethodPost)
137137
public.HandleFunc("/events/registrations", app.EventHandler.RegisterEvent).Methods(http.MethodPost)
138138
public.HandleFunc("/events/registrations/{order_no}", app.EventHandler.RegistrationStatus).Methods(http.MethodGet)

0 commit comments

Comments
 (0)