Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 359 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 359 Bytes

url shortener built with vlang

To create a link:

POST
http://localhost:8081/create

BODY:
{
	"link_url": "https://github.com/",
	"link_name": "hi"
}

To go to a link:

GET
http://localhost:8081/:link
EXAMPLE:
http://localhost:8081/hi

How to run the app:

v -enable-globals run shortener.v //we use globals to store our redis connection