Skip to content

Commit

Permalink
Rename request type
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaptoss committed Jul 10, 2024
1 parent 5891c8b commit 0e0ac8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ get:
500:
$ref: '#/components/responses/internalError'

patch:
put:
tags:
- Event types
summary: Update event type
Expand Down
2 changes: 1 addition & 1 deletion internal/service/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func Run(ctx context.Context, cfg config.Config) {
r.Get("/", handlers.ListEventTypes)
r.With(authMW).Post("/", handlers.CreateEventType)
r.Get("/{name}", handlers.GetEventType)
r.With(authMW).Patch("/{name}", handlers.UpdateEventType)
r.With(authMW).Put("/{name}", handlers.UpdateEventType)
})
})
// must be accessible only within the cluster
Expand Down

0 comments on commit 0e0ac8d

Please sign in to comment.