From 94ed386851c6360d51a691d1a4cac4688faaafd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=C5=9Fk=C4=B1n=20Gedik?= Date: Sun, 27 Dec 2015 20:20:21 +0200 Subject: [PATCH] Update rest.md --- _docs/rest.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/_docs/rest.md b/_docs/rest.md index 5479758..b83fd65 100644 --- a/_docs/rest.md +++ b/_docs/rest.md @@ -6,23 +6,23 @@ title: Restful Web Services You can handle HTTP methods as easy as writing method names and the route with a code block. Kemal will handle all the hard work. ```ruby - get "/" do - .. show something .. - end +get "/" do +.. show something .. +end - post "/" do - .. create something .. - end +post "/" do +.. create something .. +end - put "/" do - .. replace something .. - end +put "/" do +.. replace something .. +end - patch "/" do - .. modify something .. - end +patch "/" do +.. modify something .. +end - delete "/" do - .. annihilate something .. - end +delete "/" do +.. annihilate something .. +end ```