oduwsdl / MemGator

A Memento Aggregator CLI and Server in Go
https://memgator.cs.odu.edu/api.html
MIT License
55 stars 11 forks source link

Shorten the URL of the default archives #75

Closed ibnesayeed closed 8 years ago

ibnesayeed commented 8 years ago

This will make the help document look better. A shorten URL is created as follows:

$ curl -i https://git.io -F "url=http://oduwsdl.github.io/memgator/archives.json" -F "code=archives"
HTTP/1.1 100 Continue

HTTP/1.1 201 Created
Server: Cowboy
Connection: keep-alive
Date: Fri, 20 May 2016 20:15:40 GMT
Status: 201 Created
Content-Type: text/html;charset=utf-8
Location: https://git.io/archives
Content-Length: 47
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Runtime: 0.017687
X-Node: 69780781-3c1c-4ee4-be61-a1d809002508
X-Revision: 4fdc60de6311e6a3aa31e19bc7b3aad7e85d33a6
Strict-Transport-Security: max-age=31536000; includeSubDomains
Via: 1.1 vegur

http://oduwsdl.github.io/memgator/archives.json

This yields in short URL http://git.io/archives