Skip to content

Commit

Permalink
fix: change duplicated POST method to PUT method (#70308)
Browse files Browse the repository at this point in the history
### What?

Non-static HTTP methods contain `PUT` method, but there are two `POST`
methods.

### How?

Change one `POST` method to `PUT` method

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
baeharam and ijjk committed Sep 23, 2024
1 parent b3f0744 commit f80bc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/route-modules/app-route/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ export function hasNonStaticMethods(handlers: AppRouteHandlers): boolean {
if (
// Order these by how common they are to be used
handlers.POST ||
handlers.POST ||
handlers.PUT ||
handlers.DELETE ||
handlers.PATCH ||
handlers.OPTIONS
Expand Down

0 comments on commit f80bc82

Please sign in to comment.