Skip to content

natebrennand/shrtnr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Shrtnr

A very basic Golang URL shortener backed by Redis.

There is a basic Angular frontend written but this is intended to be consumed as a restful API.

API

Create URL

POST /

data:

{
  "LongURL":    "a long url for a webpage",
  "RequestURL": "the requested short url"   // optional
}

URL Stats

GET /stats/[short url]

Response:

(more data points may be added)

{
  "HitCount": X
}

Forward Via Short URL

GET /[short url]

Any get request that is not to /, /static/* or /favicon.ico will be interpreted as a forward request.

About

A URL shortener in Go backed by Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published