From 9f61d78069119a3b5a6156df81e1fa16888477d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D5=BF=D5=AB=D5=A3=D6=80=D5=A1=D5=B6?= Date: Sat, 7 Nov 2020 21:08:10 +0400 Subject: [PATCH 1/2] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8b5f3a0..a961f65 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ npm run build ### Add Comment ``` -POST {{YOUR_API_URL}}/comments +POST {{YOUR_API_URL}}/api/comments ``` Request Body: @@ -86,7 +86,7 @@ Response Body: ### Get Comments ``` -GET {{YOUR_API_URL}}/comments?pageId={{PAGE_ID}} +GET {{YOUR_API_URL}}/api/comments?pageId={{PAGE_ID}} ``` Response Body: @@ -108,7 +108,7 @@ Response Body: ### Delete Comment ``` -DELETE {{YOUR_API_URL}}/comments/{{COMMENT_ID}}?secret={{COMMENT_SECRET}} +DELETE {{YOUR_API_URL}}/api/comments/{{COMMENT_ID}}?secret={{COMMENT_SECRET}} ``` Response Body: From 2c91d0a2461b7b096d53c4e0c4f5e7ded2e4d7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D5=BF=D5=AB=D5=A3=D6=80=D5=A1=D5=B6?= Date: Sat, 7 Nov 2020 21:24:25 +0400 Subject: [PATCH 2/2] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a961f65..38b6ca2 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,15 @@ Options can be passed via data attributes. 2. Clone the repository and install dependencies: ``` -npm install +$ git clone https://github.com/FooComments/foo-comments-widget.git +$ cd foo-comments-widget +$ npm install ``` 3. Run it for development: ``` -npm start +$ npm start ``` Open http://localhost:1234 to view it in the browser. @@ -47,7 +49,7 @@ Open http://localhost:1234 to view it in the browser. 4. Build it for production: ``` -npm run build +$ npm run build ``` ## API Reference