Skip to content

Commit 8c8def9

Browse files
authored
fix: remove "all" from JSDoc comment on supported http methods in endpoints (#14777)
Removes the suggestion that "all" is a supported HTTP method in endpoints since it's not supported and it's not a valid method either. Closes #14732
1 parent 42cbd70 commit 8c8def9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/payload/src/config/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export type Endpoint = {
346346
* Compatible with Web Request/Response Model
347347
*/
348348
handler: PayloadHandler
349-
/** HTTP method (or "all") */
349+
/** HTTP method */
350350
method: 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put'
351351
/**
352352
* Pattern that should match the path of the incoming request

0 commit comments

Comments
 (0)