Skip to content

Commit a1f84d0

Browse files
committed
Fix rejected route handler
1 parent 7689df9 commit a1f84d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/router/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func Setup(config *config.Config, injectMiddleWares []func(http.Handler) http.Ha
5858
r.Get("/draft", handleAPIError(stories.HandleListDraft))
5959
r.Get("/pending", handleAPIError(stories.HandleListPending))
6060
r.Get("/published", handleAPIError(stories.HandleListPublished))
61-
r.Get("/rejected", handleAPIError(stories.HandleListPublished))
61+
r.Get("/rejected", handleAPIError(stories.HandleListRejected))
6262
r.Get("/{storyID}", handleAPIError(stories.HandleRead))
6363
r.Put("/{storyID}", handleAPIError(stories.HandleUpdate))
6464
r.Delete("/{storyID}", handleAPIError(stories.HandleDelete))

0 commit comments

Comments
 (0)