Skip to content

Commit

Permalink
updated README file
Browse files Browse the repository at this point in the history
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
  • Loading branch information
viveksahu26 committed Sep 14, 2022
1 parent ba62554 commit 057c9e2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# url_shortner

# How URL Shortner Works !!
**URL shortner endpoint - returns a short URL**
1) go run main.go

2) Go to http://localhost:8080/short-url?longURL=http://google.com/1346461234567890123456789/get/who_is_who
Whereas,
Enter your URL after *http://localhost:8080/short-url?longURL=*
And let's say your URL is *http://google.com/1346461234567890123456789/get/vivekkumarsahu*

3) You will get output
-----------------------------
{"originalURL":"http://google.com/1346461234567890123456789/get/vivekkumarsahu","shortURL":"http://localhost:8080/RpP^goh8"}
-----------------------------

0 comments on commit 057c9e2

Please sign in to comment.