Skip to content

vimpro/link-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link Shortener

Link Shortener in Go, using Redis as a database

Available routes

GET /{id} -> redirect to the original url

POST /create -> create a link
    {
		"ID": "this is my link id",
		"Location": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
		"Password": "this is used to delete your link"
	}

DELETE /delete -> delete a link

    {
		"ID": "id of the link to be deleted",
		"Password": "so only you can delete it!"
	}
GET /clicks/{id} -> number of times a link was clicked

About

Redis powered link shortener API in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published