From 69da7677a4b9a7836afc7ac8527d6df37891d194 Mon Sep 17 00:00:00 2001 From: Matteo Rossi Date: Fri, 31 Mar 2023 18:47:49 +0200 Subject: [PATCH] docs: update README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 071efa1..9e1ef37 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,9 @@ module MyApp Rack::IdempotencyKey, store: Rack::IdempotencyKey::MemoryStore.new, routes: [ - { path: "/posts", method: "POST" }, - { path: "/posts/*", method: "PATCH" } + { path: "/posts", method: "POST" }, + { path: "/posts/*", method: "PATCH" }, + { path: "/posts/*/comments", method: "POST" } ] ) end @@ -120,8 +121,9 @@ Each route entry must be compliant with what follows: ```ruby routes: [ - { path: "/posts", method: "POST" }, - { path: "/posts/*", method: "PATCH" } + { path: "/posts", method: "POST" }, + { path: "/posts/*", method: "PATCH" }, + { path: "/posts/*/comments", method: "POST" } ] ```