Skip to content

Commit 1733a90

Browse files
committed
fix(server/ritemapi): Remove default GET method for new endpoints
Previously, endpoints created without a method would default to GET. This removes that behavior, allowing endpoints to be created with an empty method field.
1 parent e57cb0e commit 1733a90

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/server/internal/api/ritemapi/ritemapi.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ func (c *ItemApiRPC) EndpointCreate(ctx context.Context, req *connect.Request[en
7575
ParentFolderId: msg.GetParentFolderId(),
7676
}
7777

78-
if endpointReq.Method == "" {
79-
endpointReq.Method = "GET"
80-
}
8178

8279
itemApiReq, err := titemapi.SeralizeRPCToModelWithoutID(endpointReq, collectionID)
8380
if err != nil {

0 commit comments

Comments
 (0)